This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[RFA] sync include/ansidecl.h with GCC
- To: gdb-patches at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
- Subject: [RFA] sync include/ansidecl.h with GCC
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Fri, 16 Jun 2000 22:00:33 +0200
The following patch brings include/ansidecl.h in sync with gcc. This
is necessary since libiberty/mkstemps.c no longer builds with gcc
2.7.2 after HJ's upgrade of libiberty.
Can I check this in?
Mark
2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
* ansidecl.h: #define __extension__ to nothing if
GCC_VERSION < 2008.
Index: ansidecl.h
===================================================================
RCS file: /cvs/src/src/include/ansidecl.h,v
retrieving revision 1.3
diff -u -p -r1.3 ansidecl.h
--- ansidecl.h 2000/02/22 16:40:36 1.3
+++ ansidecl.h 2000/06/16 19:54:36
@@ -160,6 +160,7 @@ Foundation, Inc., 59 Temple Place - Suit
#endif /* ANSI C. */
+
/* Using MACRO(x,y) in cpp #if conditionals does not work with some
older preprocessors. Thus we can't define something like this:
@@ -220,5 +221,12 @@ So instead we use the macro below and te
#define ATTRIBUTE_PRINTF_4 ATTRIBUTE_PRINTF(4, 5)
#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 */