From 1b828ebe530ef113c9e55fad8f7e472cd36dd078 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Jun 2021 20:50:16 -0400 Subject: sim: ppc: replace local __attribute__ fallback The common ansidecl.h provides fallbacks for these so we don't need to. --- sim/ppc/ChangeLog | 6 ++++++ sim/ppc/basics.h | 9 --------- sim/ppc/misc.h | 7 +------ 3 files changed, 7 insertions(+), 15 deletions(-) (limited to 'sim/ppc') diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index fd3a0c8..723dc11 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,11 @@ 2021-06-16 Mike Frysinger + * basics.h (__attribute__): Delete. + * misc.h (__attribute__): Likewise. + Include ansidecl.h. + +2021-06-16 Mike Frysinger + * cpu.h: Include ansidecl.h. (cpu_error): Change __attribute__ ((format (printf... to ATTRIBUTE_PRINTF_3. diff --git a/sim/ppc/basics.h b/sim/ppc/basics.h index 7b785b2..0d03a42 100644 --- a/sim/ppc/basics.h +++ b/sim/ppc/basics.h @@ -83,15 +83,6 @@ typedef enum { #include -#if !defined (__attribute__) -#if (!defined(__GNUC__) \ - || (__GNUC__ < 2) \ - || (__GNUC__ == 2 && __GNUC_MINOR__ < 6)) -#define __attribute__(arg) -#endif -#endif - - /* Basic definitions - ordered so that nothing calls what comes after it */ diff --git a/sim/ppc/misc.h b/sim/ppc/misc.h index c080ae2..95b0739 100644 --- a/sim/ppc/misc.h +++ b/sim/ppc/misc.h @@ -27,12 +27,7 @@ #include #include -#if !defined (__attribute__) && (!defined(__GNUC__) || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)) -#define __attribute__(arg) -#endif - - - +#include "ansidecl.h" #include "filter_filename.h" extern void error -- cgit v1.1