]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: ppc: replace local __attribute__ fallback
authorMike Frysinger <vapier@gentoo.org>
Wed, 16 Jun 2021 00:50:16 +0000 (20:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Jun 2021 05:14:53 +0000 (01:14 -0400)
The common ansidecl.h provides fallbacks for these so we don't need to.

sim/ppc/ChangeLog
sim/ppc/basics.h
sim/ppc/misc.h

index fd3a0c81eca2bab4649a1b3cd045d19123952e47..723dc11fd4601603ac025ed1a65d6aa36f9aa05d 100644 (file)
@@ -1,3 +1,9 @@
+2021-06-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * basics.h (__attribute__): Delete.
+       * misc.h (__attribute__): Likewise.
+       Include ansidecl.h.
+
 2021-06-16  Mike Frysinger  <vapier@gentoo.org>
 
        * cpu.h: Include ansidecl.h.
index 7b785b21f0c975f5d4261954bc1caf117f23230b..0d03a42d8b75157d4f869250e2ee055733fab6d6 100644 (file)
@@ -83,15 +83,6 @@ typedef enum {
 #include <stdlib.h>
 
 
-#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 */
 
index c080ae29f0b4f5e55b4a6c74e51c2032f579487c..95b07390a0f4b737ee089fd70512912f7967dbe8 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 
-#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