diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-10 13:02:41 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-10 13:02:41 +0000 |
commit | 0a231482f03715ed95ed4fa3d9d8380557054129 (patch) | |
tree | 310d1d76de40ddae5138d2494f3d456112cfa3b0 /gcc/tree.h | |
parent | 90bf951c3323eff01d10330d8d65f91e04803cd9 (diff) | |
download | gcc-0a231482f03715ed95ed4fa3d9d8380557054129.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index d5a4b458a3c..f66a5ec7497 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -323,7 +323,7 @@ struct tree_common /* When checking is enabled, errors will be generated if a tree node is accessed incorrectly. The macros abort with a fatal error. */ -#if defined ENABLE_CHECKING && (__GNUC__ > 2 || __GNUC_MINOR__ > 6) +#if defined ENABLE_CHECKING && HAVE_GCC_VERSION(2,7) #define TREE_CHECK(t, code) \ ({ const tree __t = t; \ @@ -2519,7 +2519,7 @@ extern void dwarf2out_end_epilogue PROTO((void)); 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__) |