summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-15 20:50:16 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-16 01:14:53 -0400
commit1b828ebe530ef113c9e55fad8f7e472cd36dd078 (patch)
tree1d2d98fc1efb14bc006a061f3e08c4c20b6aa8bf /sim
parent69ff2dac7a3adb26dbe1ee56cdf369513bdcf906 (diff)
downloadbinutils-gdb-1b828ebe530ef113c9e55fad8f7e472cd36dd078.tar.gz
sim: ppc: replace local __attribute__ fallback
The common ansidecl.h provides fallbacks for these so we don't need to.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog6
-rw-r--r--sim/ppc/basics.h9
-rw-r--r--sim/ppc/misc.h7
3 files changed, 7 insertions, 15 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index fd3a0c81eca..723dc11fd46 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,5 +1,11 @@
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.
(cpu_error): Change __attribute__ ((format (printf... to
ATTRIBUTE_PRINTF_3.
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 <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 */
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 <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