sim: ppc: replace local NORETURN macros with common one
Drop local NORETURN macro with the common ansidecl.h ATTRIBUTE_NORETURN define.
This commit is contained in:
parent
f6428ce423
commit
6e57d02532
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
@ -83,10 +83,6 @@ typedef enum {
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
#ifndef NORETURN
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
#if !defined (__attribute__)
|
||||
#if (!defined(__GNUC__) \
|
||||
|| (__GNUC__ < 2) \
|
||||
|
@ -21,6 +21,8 @@
|
||||
#ifndef _SIM_CALLBACKS_H_
|
||||
#define _SIM_CALLBACKS_H_
|
||||
|
||||
#include "ansidecl.h"
|
||||
|
||||
/* Simulator output:
|
||||
|
||||
Functions to report diagnostic information to the user. */
|
||||
@ -29,7 +31,7 @@
|
||||
void sim_io_printf_filtered
|
||||
(const char *msg, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
void NORETURN error
|
||||
void ATTRIBUTE_NORETURN error
|
||||
(const char *msg, ...);
|
||||
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ansidecl.h"
|
||||
#include "libiberty.h"
|
||||
#include "bfd.h"
|
||||
#include "sim/callback.h"
|
||||
@ -383,7 +384,7 @@ sim_io_error (SIM_DESC sd, const char *fmt, ...)
|
||||
|
||||
/****/
|
||||
|
||||
void NORETURN
|
||||
void ATTRIBUTE_NORETURN
|
||||
error (const char *msg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user