summaryrefslogtreecommitdiffstats
path: root/gcc/assert.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-08-19 20:43:07 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-08-19 20:43:07 +0000
commit54bf552cefc1a89f456432b1f8c6222e39d80166 (patch)
treee5a77069cfca75a5d3fc6e2c3fe5ea37fcf56e0c /gcc/assert.h
parent9af515abc5ed7d59320cd1d5f9be6e908bb4318c (diff)
downloadppe42-gcc-54bf552cefc1a89f456432b1f8c6222e39d80166.tar.gz
ppe42-gcc-54bf552cefc1a89f456432b1f8c6222e39d80166.zip
Declare __eprintf with attribute noreturn.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/assert.h')
-rw-r--r--gcc/assert.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/assert.h b/gcc/assert.h
index 4efbab96367..ecc02ee9991 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__)))
OpenPOWER on IntegriCloud