From: Mike Frysinger Date: Wed, 16 Jun 2021 00:50:16 +0000 (-0400) Subject: sim: ppc: replace local __attribute__ fallback X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b828ebe530ef113c9e55fad8f7e472cd36dd078;p=binutils-gdb.git sim: ppc: replace local __attribute__ fallback The common ansidecl.h provides fallbacks for these so we don't need to. --- diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index fd3a0c81eca..723dc11fd46 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/sim/ppc/basics.h b/sim/ppc/basics.h index 7b785b21f0c..0d03a42d8b7 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 c080ae29f0b..95b07390a0f 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