[rtems commit] libbsp/shared/generic-fatal.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to bsp_f

Joel Sherrill joel at rtems.org
Wed Jul 10 17:32:57 UTC 2013


Module:    rtems
Branch:    master
Commit:    79363a1d5682efde6e27328d47f593193a80fa33
Changeset: http://git.rtems.org/rtems/commit/?id=79363a1d5682efde6e27328d47f593193a80fa33

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Jul 10 12:38:12 2013 -0500

libbsp/shared/generic-fatal.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to bsp_f

---

 c/src/lib/libbsp/shared/include/generic-fatal.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/shared/include/generic-fatal.h b/c/src/lib/libbsp/shared/include/generic-fatal.h
index ec2dfb6..16a8895 100644
--- a/c/src/lib/libbsp/shared/include/generic-fatal.h
+++ b/c/src/lib/libbsp/shared/include/generic-fatal.h
@@ -38,6 +38,13 @@ typedef enum {
   BSP_GENERIC_FATAL_CONSOLE_NO_DEV
 } bsp_generic_fatal_code;
 
+/*
+ * Prototype this method to ensure that the compiler knows that
+ * it does not return.
+ */
+static inline void bsp_generic_fatal( bsp_generic_fatal_code code ) \
+   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+
 static inline void bsp_generic_fatal( bsp_generic_fatal_code code )
 {
   rtems_fatal( RTEMS_FATAL_SOURCE_BSP_GENERIC, (rtems_fatal_code) code );




More information about the vc mailing list