4.3.7. __attribute__((noreturn))

This function attribute informs the compiler that the function does not return. The compiler can then perform optimizations by removing the code that is never reached.

Note

This function attribute is a GNU compiler extension that is supported by the ARM compiler. It has the __declspec equivalent __declspec(noreturn).

Example

int Function_Attributes_NoReturn_0(void) __attribute__ ((noreturn));

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential