summaryrefslogtreecommitdiff
path: root/misc/sys
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-07-18 20:44:57 +0000
committerRoland McGrath <roland@gnu.org>1994-07-18 20:44:57 +0000
commitb199da47519ae57aea6a3beee6590d1017951682 (patch)
treed282932deac4de6ba9da801bf9271cce558c9d52 /misc/sys
parent5e0eedad670ddc66a14b194f72e646ffb40c70de (diff)
entered into RCS
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 76544e1ad2..d3d8074b3b 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -27,15 +27,16 @@ Cambridge, MA 02139, USA. */
#define __DOTS , ...
/* In GCC versions before 2.5, the `volatile' and `const' keywords have
- special meanings when applied to functions. */
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
+ special meanings when applied to functions. In version 2.5, the
+ `__attribute__' syntax used below does not work properly. */
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6)
#define __NORETURN __volatile
#define __CONSTVALUE __const
#else
-/* In GCC 2.5 and later, these keywords are meaningless when applied to
+/* In GCC 2.6 and later, these keywords are meaningless when applied to
functions, as ANSI requires. Instead, we use GCC's special
`__attribute__' syntax. */
-#define __NORETURN __attribute__ ((volatile))
+#define __NORETURN __attribute__ ((noreturn))
#define __CONSTVALUE __attribute__ ((const))
#endif