Drop local NORETURN macro with the common ansidecl.h ATTRIBUTE_NORETURN define.
+2021-06-16 Mike Frysinger <vapier@gentoo.org>
+
+ * basics.h (NORETURN): Delete.
+ * sim_callbacks.h: Include ansidecl.h. Change NORETURN to
+ ATTRIBUTE_NORETURN.
+ * sim_calls.c: Likewise.
+
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* basics.h (UNUSED): Delete.
#include <stdlib.h>
-#ifndef NORETURN
-#define NORETURN
-#endif
-
#if !defined (__attribute__)
#if (!defined(__GNUC__) \
|| (__GNUC__ < 2) \
#ifndef _SIM_CALLBACKS_H_
#define _SIM_CALLBACKS_H_
+#include "ansidecl.h"
+
/* Simulator output:
Functions to report diagnostic information to the user. */
void sim_io_printf_filtered
(const char *msg, ...) __attribute__ ((format (printf, 1, 2)));
-void NORETURN error
+void ATTRIBUTE_NORETURN error
(const char *msg, ...);
#include <stdlib.h>
#include <string.h>
+#include "ansidecl.h"
#include "libiberty.h"
#include "bfd.h"
#include "sim/callback.h"
/****/
-void NORETURN
+void ATTRIBUTE_NORETURN
error (const char *msg, ...)
{
va_list ap;