* [PATCH] sim: m68hc11/mn10300/v850: delete redundant INLINE defines
@ 2015-06-11 11:18 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2015-06-11 11:18 UTC (permalink / raw)
To: gdb-patches
The sim-inline.h header already takes care of this for us, so punt
the local definitions.
Committed.
---
sim/m68hc11/ChangeLog | 4 ++++
sim/m68hc11/interp.c | 8 --------
sim/mn10300/ChangeLog | 5 +++++
sim/mn10300/interp.c | 8 --------
sim/mn10300/mn10300_sim.h | 8 --------
sim/v850/ChangeLog | 4 ++++
sim/v850/interp.c | 8 --------
7 files changed, 13 insertions(+), 32 deletions(-)
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index f87aedf..ac228b8 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-11 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (INLINE): Delete define.
+
2015-04-29 Nick Clifton <nickc@redhat.com>
PR 18273
diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c
index 659001a..e9f3aab 100644
--- a/sim/m68hc11/interp.c
+++ b/sim/m68hc11/interp.c
@@ -41,14 +41,6 @@ char *interrupt_names[] = {
NULL
};
-#ifndef INLINE
-#if defined(__GNUC__) && defined(__OPTIMIZE__)
-#define INLINE __inline__
-#else
-#define INLINE
-#endif
-#endif
-
struct sim_info_list
{
const char *name;
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index bee772f..af49458 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-11 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (INLINE): Delete define.
+ * mn10300_sim.h (INLINE): Likewise.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (SIM_CPU): Delete.
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c
index 4439ac8..e5a90b5 100644
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -23,14 +23,6 @@
#include "bfd.h"
-#ifndef INLINE
-#ifdef __GNUC__
-#define INLINE inline
-#else
-#define INLINE
-#endif
-#endif
-
host_callback *mn10300_callback;
int mn10300_debug;
diff --git a/sim/mn10300/mn10300_sim.h b/sim/mn10300/mn10300_sim.h
index 4ea5d3e..9f0076a 100644
--- a/sim/mn10300/mn10300_sim.h
+++ b/sim/mn10300/mn10300_sim.h
@@ -8,14 +8,6 @@
#include "bfd.h"
#include "sim-fpu.h"
-#ifndef INLINE
-#ifdef __GNUC__
-#define INLINE inline
-#else
-#define INLINE
-#endif
-#endif
-
extern host_callback *mn10300_callback;
extern SIM_DESC simulator;
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog
index f47e33f..b42591e 100644
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-11 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (INLINE): Delete define.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (SIM_CPU): Delete.
diff --git a/sim/v850/interp.c b/sim/v850/interp.c
index 36da132..5b46feb 100644
--- a/sim/v850/interp.c
+++ b/sim/v850/interp.c
@@ -18,14 +18,6 @@
#include "bfd.h"
-#ifndef INLINE
-#ifdef __GNUC__
-#define INLINE inline
-#else
-#define INLINE
-#endif
-#endif
-
static const char * get_insn_name (sim_cpu *, int);
/* For compatibility. */
--
2.4.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-11 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 11:18 [PATCH] sim: m68hc11/mn10300/v850: delete redundant INLINE defines Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).