summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-05-27 10:39:53 +0200
committerMatthias Braun <matze@braunis.de>2014-05-28 17:07:11 +0200
commitf3d52124afebf57332a06069540ed402e24b916f (patch)
tree6aebf1b21c30dcebbf9533b077bc4d229aa0953f /ir/obstack
parent88b246dc6776a17ad3bec52b6887fc388adc74aa (diff)
reorganize noreturn,printf,nothrow attributes in funcattr.h
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c
index b69c803..4c04fdd 100644
--- a/ir/obstack/obstack.c
+++ b/ir/obstack/obstack.c
@@ -64,8 +64,8 @@ enum
abort gracefully or use longjump - but shouldn't return. This
variable by default points to the internal function
`print_and_abort'. */
-static void print_and_abort (void);
-void (*obstack_alloc_failed_handler) (void) = print_and_abort;
+static FIRM_NORETURN print_and_abort (void);
+FIRM_NORETURN (*obstack_alloc_failed_handler) (void) = print_and_abort;
/* Exit value used when `print_and_abort' is used. */
# include <stdlib.h>
@@ -331,7 +331,7 @@ PTR_INT_TYPE _obstack_memory_used(struct obstack *h)
return nbytes;
}
-static void __attribute__((noreturn)) print_and_abort(void)
+static FIRM_NORETURN print_and_abort(void)
{
/* Don't change any of these strings. Yes, it would be possible to add
the newline to the string and use fputs or so. But this must not