aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
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/igen
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/igen')
-rw-r--r--sim/igen/ChangeLog7
-rw-r--r--sim/igen/gen-itable.c5
-rw-r--r--sim/igen/gen-model.c4
-rw-r--r--sim/igen/ld-cache.c4
-rw-r--r--sim/igen/ld-decode.c4
5 files changed, 7 insertions, 17 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog
index 7ef9e1d..22efdf3 100644
--- a/sim/igen/ChangeLog
+++ b/sim/igen/ChangeLog
@@ -1,3 +1,10 @@
+2021-06-09 Mike Frysinger <vapier@gentoo.org>
+
+ * gen-itable.c (NULL): Delete.
+ * gen-model.c (NULL): Likewise.
+ * ld-cache.c (NULL): Likewise.
+ * ld-decode.c (NULL): Likewise.
+
2021-06-05 Mike Frysinger <vapier@gentoo.org>
* local.mk (all-recursive): Delete rule.
diff --git a/sim/igen/gen-itable.c b/sim/igen/gen-itable.c
index 3b50ab6..eedef58 100644
--- a/sim/igen/gen-itable.c
+++ b/sim/igen/gen-itable.c
@@ -34,11 +34,6 @@
#include "gen-itable.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
-
typedef struct _itable_info
{
diff --git a/sim/igen/gen-model.c b/sim/igen/gen-model.c
index f162446..054d7b9 100644
--- a/sim/igen/gen-model.c
+++ b/sim/igen/gen-model.c
@@ -31,10 +31,6 @@
#include "gen-model.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
void
gen_model_h (lf *file, insn_table *table)
diff --git a/sim/igen/ld-cache.c b/sim/igen/ld-cache.c
index 24b6222..defe31d 100644
--- a/sim/igen/ld-cache.c
+++ b/sim/igen/ld-cache.c
@@ -30,10 +30,6 @@
#include "ld-insn.h"
#include "ld-cache.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
enum
{
diff --git a/sim/igen/ld-decode.c b/sim/igen/ld-decode.c
index 75f2427..6736e6b 100644
--- a/sim/igen/ld-decode.c
+++ b/sim/igen/ld-decode.c
@@ -31,10 +31,6 @@
#include "ld-decode.h"
-#ifndef NULL
-#define NULL 0
-#endif
-
static const name_map decode_type_map[] = {
{"normal", normal_decode_rule},