aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-mem.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-11-06 04:46:17 +0000
committerDoug Evans <dje@google.com>2009-11-06 04:46:17 +0000
commitca25db52ba0d1351cf0017cde4fcebf03895d75e (patch)
treeedc057f4620e510fa33412b5aa64771f1d4c478a /sim/common/cgen-mem.h
parent4539601e6c4cb76973f83a5dfeaef424d9197d88 (diff)
downloadgdb-ca25db52ba0d1351cf0017cde4fcebf03895d75e.zip
gdb-ca25db52ba0d1351cf0017cde4fcebf03895d75e.tar.gz
gdb-ca25db52ba0d1351cf0017cde4fcebf03895d75e.tar.bz2
* cgen-mem.h (DECLARE_GETT): Don't inline.
(DECLARE_SETT): Ditto.
Diffstat (limited to 'sim/common/cgen-mem.h')
-rw-r--r--sim/common/cgen-mem.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/common/cgen-mem.h b/sim/common/cgen-mem.h
index 81bf943..b7f767f 100644
--- a/sim/common/cgen-mem.h
+++ b/sim/common/cgen-mem.h
@@ -160,9 +160,9 @@ DECLARE_SETMEM (DF, 8) /* TAGS: SETMEMDF */
This needn't be very efficient (i.e. can call memcpy) as this is
only used when interfacing with the outside world (e.g. gdb). */
-#if defined (__GNUC__) || defined (MEMOPS_DEFINE_INLINE)
+#if defined (MEMOPS_DEFINE_INLINE)
#define DECLARE_GETT(mode, size) \
-MEMOPS_INLINE mode \
+mode \
XCONCAT2 (GETT,mode) (unsigned char *p) \
{ \
mode tmp; \
@@ -195,9 +195,9 @@ DECLARE_GETT (TF, 16) /* TAGS: GETTTF */
This needn't be very efficient (i.e. can call memcpy) as this is
only used when interfacing with the outside world (e.g. gdb). */
-#if defined (__GNUC__) || defined (MEMOPS_DEFINE_INLINE)
+#if defined (MEMOPS_DEFINE_INLINE)
#define DECLARE_SETT(mode, size) \
-MEMOPS_INLINE void \
+void \
XCONCAT2 (SETT,mode) (unsigned char *buf, mode val) \
{ \
mode tmp; \
@@ -206,7 +206,7 @@ XCONCAT2 (SETT,mode) (unsigned char *buf, mode val) \
}
#else
#define DECLARE_SETT(mode, size) \
-extern mode XCONCAT2 (GETT,mode) (unsigned char *, mode);
+extern mode XCONCAT2 (SETT,mode) (unsigned char *, mode);
#endif
DECLARE_SETT (QI, 1) /* TAGS: SETTQI */