diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-19 16:43:07 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-19 16:43:07 -0400 |
commit | 19ac27705c77dd5e2a02a7dd04abda133b0003fd (patch) | |
tree | e5a77069cfca75a5d3fc6e2c3fe5ea37fcf56e0c /gcc/assert.h | |
parent | cfeda19726d6f272327f0c638dc428fe00c326f1 (diff) | |
download | gcc-19ac27705c77dd5e2a02a7dd04abda133b0003fd.zip gcc-19ac27705c77dd5e2a02a7dd04abda133b0003fd.tar.gz gcc-19ac27705c77dd5e2a02a7dd04abda133b0003fd.tar.bz2 |
Declare __eprintf with attribute noreturn.
From-SVN: r10247
Diffstat (limited to 'gcc/assert.h')
-rw-r--r-- | gcc/assert.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/assert.h b/gcc/assert.h index 4efbab9..ecc02ee 100644 --- a/gcc/assert.h +++ b/gcc/assert.h @@ -23,10 +23,12 @@ /* Defined in libgcc.a */ #ifdef __cplusplus extern "C" { -extern void __eprintf (const char *, const char *, unsigned, const char *); +extern void __eprintf (const char *, const char *, unsigned, const char *) + __attribute__ ((noreturn)); } #else -extern void __eprintf (const char *, const char *, unsigned, const char *); +extern void __eprintf (const char *, const char *, unsigned, const char *) + __attribute__ ((noreturn)); #endif #define assert(expression) \ @@ -38,7 +40,7 @@ extern void __eprintf (const char *, const char *, unsigned, const char *); #else /* no __STDC__ and not C++; i.e. -traditional. */ -extern void __eprintf (); /* Defined in libgcc.a */ +extern void __eprintf () __attribute__ ((noreturn)); /* Defined in libgcc.a */ #define assert(expression) \ ((void) ((expression) ? 0 : __assert (expression, __FILE__, __LINE__))) |