aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-06 18:13:41 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-09 19:07:09 -0400
commit943f9baa37aa2704820439d4f72a7624c7eb4968 (patch)
tree6524433ccdab90d3755b1283fddc0292aa36c2bb /sim/ppc
parentdc3de083d522ef0fb465adaacd065a61481d4007 (diff)
downloadgdb-943f9baa37aa2704820439d4f72a7624c7eb4968.zip
gdb-943f9baa37aa2704820439d4f72a7624c7eb4968.tar.gz
gdb-943f9baa37aa2704820439d4f72a7624c7eb4968.tar.bz2
sim: cleanup obsolete NULL fallback
We require C11 which defines NULL, so drop the inconsistent set of fallback defines in the codebase.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/ChangeLog8
-rw-r--r--sim/ppc/basics.h4
-rw-r--r--sim/ppc/gen-itable.c5
-rw-r--r--sim/ppc/gen-model.c4
-rw-r--r--sim/ppc/ld-cache.c4
-rw-r--r--sim/ppc/ld-decode.c3
6 files changed, 8 insertions, 20 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index fcd74c6..9289b8e 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,11 @@
+2021-06-09 Mike Frysinger <vapier@gentoo.org>
+
+ * basics.h (NULL): Delete.
+ * gen-itable.c (NULL): Likewise.
+ * gen-model.c (NULL): Likewise.
+ * ld-cache.c (NULL): Likewise.
+ * ld-decode.c (NULL): Likewise.
+
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* configure.ac (WERROR_CFLAGS): Add -Wno-format for mingw32 hosts.
diff --git a/sim/ppc/basics.h b/sim/ppc/basics.h
index 057cf1a..3eb7c61 100644
--- a/sim/ppc/basics.h
+++ b/sim/ppc/basics.h
@@ -103,10 +103,6 @@ typedef enum {
#define NORETURN
#endif
-#ifndef NULL
-#define NULL 0
-#endif
-
#if !defined (__attribute__)
#if (!defined(__GNUC__) \
|| (__GNUC__ < 2) \
diff --git a/sim/ppc/gen-itable.c b/sim/ppc/gen-itable.c
index 7f3139e..a0d1560 100644
--- a/sim/ppc/gen-itable.c
+++ b/sim/ppc/gen-itable.c
@@ -32,11 +32,6 @@
#include "igen.h"
#include "gen-itable.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
-
static void
itable_h_insn(insn_table *entry,
diff --git a/sim/ppc/gen-model.c b/sim/ppc/gen-model.c
index a591d31..1322391 100644
--- a/sim/ppc/gen-model.c
+++ b/sim/ppc/gen-model.c
@@ -30,10 +30,6 @@
#include "gen-model.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
static void
model_c_or_h_data(insn_table *table,
diff --git a/sim/ppc/ld-cache.c b/sim/ppc/ld-cache.c
index 29a7035..611ac7a 100644
--- a/sim/ppc/ld-cache.c
+++ b/sim/ppc/ld-cache.c
@@ -23,10 +23,6 @@
#include "table.h"
#include "ld-cache.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
enum {
ca_type,
diff --git a/sim/ppc/ld-decode.c b/sim/ppc/ld-decode.c
index 3b2e1a0..cee006f 100644
--- a/sim/ppc/ld-decode.c
+++ b/sim/ppc/ld-decode.c
@@ -24,9 +24,6 @@
#include "table.h"
#include "ld-decode.h"
-#ifndef NULL
-#define NULL 0
-#endif
enum {
op_options,