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 /include/ansidecl.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 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 9e8a457..e7852c6 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -222,4 +222,11 @@ So instead we use the macro below and test it against specific values. */ #define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6) #endif /* ATTRIBUTE_PRINTF */ +/* We use __extension__ in some places to suppress -pedantic warnings + about GCC extensions. This feature didn't work properly before + gcc 2.8. */ +#if GCC_VERSION < 2008 +#define __extension__ +#endif + #endif /* ansidecl.h */ |