This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients barry, pitrou, rhettinger, serhiy.storchaka, skrah, vstinner
Date 2017-09-05.23:06:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+#define Py_UNREACHABLE() abort()

Using such macro, I don't think that __builtin_unreachable() is useful.

Another use for __builtin_unreachable is following a call a function that never returns but that is not declared __attribute__((noreturn)), as in this example: 

      function_that_never_returns ();
      __builtin_unreachable ();

I expect abort() to be annotated with __attribute__((noreturn)) on the C library used GCC.
Date User Action Args
2017-09-05 23:06:48vstinnersetrecipients: + vstinner, barry, rhettinger, pitrou, skrah, serhiy.storchaka
2017-09-05 23:06:48vstinnersetmessageid: <>
2017-09-05 23:06:48vstinnerlinkissue31338 messages
2017-09-05 23:06:48vstinnercreate