From: devans Date: Fri, 6 Nov 2009 13:46:17 +0000 (+0000) Subject: * cgen-mem.h (DECLARE_GETT): Don't inline. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=607d1338a4dcf4edcd5e973a281c9ec831fa6673;p=pf3gnuchains%2Fpf3gnuchains3x.git * cgen-mem.h (DECLARE_GETT): Don't inline. (DECLARE_SETT): Ditto. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a684da5c5c..7b10e9536d 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2009-11-05 Doug Evans + + * cgen-mem.h (DECLARE_GETT): Don't inline. + (DECLARE_SETT): Ditto. + 2009-10-15 Joel Sherrill * sim-inline.h: Fix spelling error. diff --git a/sim/common/cgen-mem.h b/sim/common/cgen-mem.h index 81bf943690..b7f767f43f 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 */