This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add new built-in: __builtin_unreachable()


Paul Brook wrote:
The new __builtin_unreachable() is meant to be placed directly after
an asm that never returns.  I cannot think of any other valid uses for
it

gcc_unreachable and gcc_assert are obvious candidates.

So might be following a call to a NORETURN function defined in a third-party library, and the vendor doesn't actually declare the function NORETURN.


r~



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]