aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 20:00:03 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 20:00:03 +0000
commitdb7e2f59cc87371336ba3a38ded6a061a6787a18 (patch)
tree6f7e2ff75e7f61fbe2cbff3e77a3c645d858d240 /include/ansidecl.h
parent435176698aa826a6a67fcffeccb3237d54ec0656 (diff)
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/ansidecl.h')
-rw-r--r--include/ansidecl.h7
1 files changed, 7 insertions, 0 deletions
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 */