svn commit: trunk/uClibc/include

vapier at uclibc.org vapier at uclibc.org
Fri Nov 4 00:07:59 UTC 2005


Author: vapier
Date: 2005-11-03 16:07:48 -0800 (Thu, 03 Nov 2005)
New Revision: 12143

Log:
add a macro for __attribute__ ((__noreturn__))

Modified:
   trunk/uClibc/include/libc-internal.h


Changeset:
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h	2005-11-03 23:57:25 UTC (rev 12142)
+++ trunk/uClibc/include/libc-internal.h	2005-11-04 00:07:48 UTC (rev 12143)
@@ -76,7 +76,7 @@
 
 /* Prepare for the case that `__builtin_expect' is not available.  */
 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
-#define __builtin_expect(x, expected_value) (x)
+# define __builtin_expect(x, expected_value) (x)
 #endif
 #ifndef likely
 # define likely(x)	__builtin_expect((!!(x)),1)
@@ -85,10 +85,10 @@
 # define unlikely(x)	__builtin_expect((!!(x)),0)
 #endif
 #ifndef __LINUX_COMPILER_H
-#define __LINUX_COMPILER_H
+# define __LINUX_COMPILER_H
 #endif
 #ifndef __cast__
-#define __cast__(_to)
+# define __cast__(_to)
 #endif
 
 /* Arrange to hide uClibc internals */
@@ -104,6 +104,12 @@
 # define attribute_relro
 #endif
 
+#ifdef __GNUC__
+# define attribute_noreturn __attribute__ ((__noreturn__))
+#else
+# define attribute_noreturn
+#endif
+
 /* Pull in things like __attribute_used__ */
 #include <sys/cdefs.h>
 




More information about the uClibc-cvs mailing list