public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [RFA] sync include/ansidecl.h with GCC
@ 2000-06-16 16:41 Nick Clifton
  2000-06-17 15:38 ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2000-06-16 16:41 UTC (permalink / raw)
  To: kettenis; +Cc: gdb-patches, binutils

Hi Mark,

: 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
: 
:         * ansidecl.h: #define __extension__ to nothing if
:         GCC_VERSION < 2008.

Approved.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] sync include/ansidecl.h with GCC
  2000-06-16 16:41 [RFA] sync include/ansidecl.h with GCC Nick Clifton
@ 2000-06-17 15:38 ` Mark Kettenis
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2000-06-17 15:38 UTC (permalink / raw)
  To: nickc; +Cc: gdb-patches, binutils

   Date: Fri, 16 Jun 2000 16:41:44 -0700
   From: Nick Clifton <nickc@cygnus.com>

   Hi Mark,

   : 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
   : 
   :         * ansidecl.h: #define __extension__ to nothing if
   :         GCC_VERSION < 2008.

   Approved.

Looks like HJ beat me to it.  Thanks anyway.

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [RFA] sync include/ansidecl.h with GCC
@ 2000-06-16 13:00 Mark Kettenis
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2000-06-16 13:00 UTC (permalink / raw)
  To: gdb-patches, binutils

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	*/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-06-17 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-16 16:41 [RFA] sync include/ansidecl.h with GCC Nick Clifton
2000-06-17 15:38 ` Mark Kettenis
  -- strict thread matches above, loose matches on Subject: below --
2000-06-16 13:00 Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).