diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-05-06 20:00:03 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-05-06 20:00:03 +0000 |
commit | 8784fdcd6948be709accc155dd11ec3b3294394d (patch) | |
tree | 6f7e2ff75e7f61fbe2cbff3e77a3c645d858d240 /gcc/tree.h | |
parent | d44725ebf5cfe362e195c9f09e7e67dd02208759 (diff) | |
download | gcc-8784fdcd6948be709accc155dd11ec3b3294394d.zip gcc-8784fdcd6948be709accc155dd11ec3b3294394d.tar.gz gcc-8784fdcd6948be709accc155dd11ec3b3294394d.tar.bz2 |
cpphash.h: Remove conditional #define of __extension__.
gcc:
* cpphash.h: Remove conditional #define of __extension__.
* rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
(ENABLE_RTL_CHECKING only).
* tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
(ENABLE_TREE_CHECKING only).
* varray.h: Add __extension__ to VARRAY_CHECK macro
(ENABLE_CHECKING only).
include:
* ansidecl.h: #define __extension__ to nothing if
GCC_VERSION < 2008.
From-SVN: r33733
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -277,13 +277,13 @@ struct tree_common is accessed incorrectly. The macros abort with a fatal error. */ #if defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 2007) -#define TREE_CHECK(t, code) \ +#define TREE_CHECK(t, code) __extension__ \ ({ const tree __t = t; \ if (TREE_CODE(__t) != (code)) \ tree_check_failed (__t, code, __FILE__, \ __LINE__, __PRETTY_FUNCTION__); \ __t; }) -#define TREE_CLASS_CHECK(t, class) \ +#define TREE_CLASS_CHECK(t, class) __extension__ \ ({ const tree __t = t; \ if (TREE_CODE_CLASS(TREE_CODE(__t)) != (class)) \ tree_class_check_failed (__t, class, __FILE__, \ @@ -291,14 +291,14 @@ struct tree_common __t; }) /* These checks have to be special cased. */ -#define CST_OR_CONSTRUCTOR_CHECK(t) \ +#define CST_OR_CONSTRUCTOR_CHECK(t) __extension__ \ ({ const tree __t = t; \ enum tree_code __c = TREE_CODE(__t); \ if (__c != CONSTRUCTOR && TREE_CODE_CLASS(__c) != 'c') \ tree_check_failed (__t, CONSTRUCTOR, __FILE__, \ __LINE__, __PRETTY_FUNCTION__); \ __t; }) -#define EXPR_CHECK(t) \ +#define EXPR_CHECK(t) __extension__ \ ({ const tree __t = t; \ char __c = TREE_CODE_CLASS(TREE_CODE(__t)); \ if (__c != 'r' && __c != 's' && __c != '<' \ |