From: Mike Frysinger Date: Sat, 24 Apr 2021 17:58:04 +0000 (-0400) Subject: sim: callback: use ATTRIBUTE_NORETURN X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fb6dc36bb515f39f332707b85f7e1cb5129eed8;p=binutils-gdb.git sim: callback: use ATTRIBUTE_NORETURN This define is handled by ansidecl.h, so no need to duplicate effort. --- diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog index 6649f198617..3098bb9518f 100644 --- a/include/sim/ChangeLog +++ b/include/sim/ChangeLog @@ -1,3 +1,7 @@ +2021-05-14 Mike Frysinger + + * callback.h (error): Replace __attribute__ with ATTRIBUTE_NORETURN. + 2021-05-14 Mike Frysinger * callback.h: Delete va_start define check. diff --git a/include/sim/callback.h b/include/sim/callback.h index 693614baa5e..d8dfd81a64c 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -121,11 +121,7 @@ struct host_callback_struct /* Print an error message and "exit". In the case of gdb "exiting" means doing a longjmp back to the main command loop. */ - void (*error) (host_callback *, const char *, ...) -#ifdef __GNUC__ - __attribute__ ((__noreturn__)) -#endif - ; + void (*error) (host_callback *, const char *, ...) ATTRIBUTE_NORETURN; int last_errno; /* host format */