diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-10-10 13:02:41 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-10-10 13:02:41 +0000 |
commit | b30bce6b52996616cb627a68222fbf5d8be9d4b9 (patch) | |
tree | 310d1d76de40ddae5138d2494f3d456112cfa3b0 /gcc/rtl.h | |
parent | 4724334af7ddfb70240a39f965647d32773ba417 (diff) | |
download | gcc-b30bce6b52996616cb627a68222fbf5d8be9d4b9.zip gcc-b30bce6b52996616cb627a68222fbf5d8be9d4b9.tar.gz gcc-b30bce6b52996616cb627a68222fbf5d8be9d4b9.tar.bz2 |
ansidecl.h (HAVE_GCC_VERSION): New macro.
include:
* ansidecl.h (HAVE_GCC_VERSION): New macro. Use instead of
explicitly testing __GNUC__ and __GNUC_MINOR__.
(ATTRIBUTE_PRINTF): Use `__format__', not `format'.
gcc:
* cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
__GNUC__ and __GNUC_MINOR__.
* gansidecl.h: Likewise.
* rtl.c: Likewise.
* rtl.h: Likewise.
* toplev.h: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
* varray.c: Likewise.
* varray.h: Likewise.
cp:
* cp-tree.h: Use HAVE_GCC_VERSION instead of explicitly testing
__GNUC__ and __GNUC_MINOR__.
f:
* proj.h: Use HAVE_GCC_VERSION instead of explicitly testing
__GNUC__ and __GNUC_MINOR__. Don't define BUILT_WITH_270.
Define macro UNUSED in terms of ATTRIBUTE_UNUSED.
From-SVN: r29890
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -230,7 +230,7 @@ typedef struct rtvec_def{ /* General accessor macros for accessing the fields of an rtx. */ -#if defined ENABLE_CHECKING && (__GNUC__ > 2 || __GNUC_MINOR__ > 6) +#if defined ENABLE_CHECKING && HAVE_GCC_VERSION(2,7) /* The bit with a star outside the statement expr and an & inside is so that N can be evaluated only once. */ #define RTL_CHECK1(RTX, N, C1) \ @@ -1673,7 +1673,7 @@ extern void rtx_free PROTO ((rtx)); extern void fancy_abort PROTO((const char *, int, const char *)) ATTRIBUTE_NORETURN; -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +#if ! HAVE_GCC_VERSION(2,7) #define abort() fancy_abort (__FILE__, __LINE__, 0) #else #define abort() fancy_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) |