diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-06 20:00:03 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-06 20:00:03 +0000 |
commit | db7e2f59cc87371336ba3a38ded6a061a6787a18 (patch) | |
tree | 6f7e2ff75e7f61fbe2cbff3e77a3c645d858d240 /include | |
parent | 435176698aa826a6a67fcffeccb3237d54ec0656 (diff) | |
download | gcc-db7e2f59cc87371336ba3a38ded6a061a6787a18.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/ansidecl.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 438a7703fad..3658cc4d4d1 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2000-05-06 Zack Weinberg <zack@wolery.cumb.org> + + * ansidecl.h: #define __extension__ to nothing if + GCC_VERSION < 2008. + 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * demangle.h (demangler_engine): Constify. diff --git a/include/ansidecl.h b/include/ansidecl.h index 9e8a457c2e0..e7852c68458 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 */ |