aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>1999-11-10 18:57:21 +0100
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-11-10 17:57:21 +0000
commit6c9821b783ceb6f2b12b40980af5b384f112ed89 (patch)
tree3f1f607d7e9b02c763f4e7b5e8778d0e4ee8373e /gcc/tree.h
parent8bfa6fc532f4fd28091c639b39f058404f779265 (diff)
downloadgcc-6c9821b783ceb6f2b12b40980af5b384f112ed89.zip
gcc-6c9821b783ceb6f2b12b40980af5b384f112ed89.tar.gz
gcc-6c9821b783ceb6f2b12b40980af5b384f112ed89.tar.bz2
ansidecl.h: Define and test `GCC_VERSION', not `HAVE_GCC_VERSION'.
include: * ansidecl.h: Define and test `GCC_VERSION', not `HAVE_GCC_VERSION'. gcc: * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'. * gansidecl.h: Likewise. * rtl.c: Likewise. * rtl.h: Likewise. * toplev.h: Likewise. * tree.c: Likewise. * tree.h: Likewise. * varray.c: Likewise. * varray.h: Likewise. gcc/cp: * cp-tree.h: Test `GCC_VERSION', not `HAVE_GCC_VERSION'. gcc/f: * proj.h: Test `GCC_VERSION', not `HAVE_GCC_VERSION'. Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu> From-SVN: r30477
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 4af3a1d..42760c8 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -321,7 +321,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 && HAVE_GCC_VERSION(2,7)
+#if defined ENABLE_CHECKING && (GCC_VERSION >= 2007)
#define TREE_CHECK(t, code) \
({ const tree __t = t; \
@@ -2513,8 +2513,8 @@ extern void dwarf2out_end_epilogue PROTO((void));
extern void fancy_abort PROTO((const char *, int, const char *))
ATTRIBUTE_NORETURN;
-#if ! HAVE_GCC_VERSION(2,7)
-#define abort() fancy_abort (__FILE__, __LINE__, 0)
-#else
+#if (GCC_VERSION >= 2007)
#define abort() fancy_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
+#else
+#define abort() fancy_abort (__FILE__, __LINE__, 0)
#endif