This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add NO_IMPLICIT_EXTERN_C for netbsd



On Dec 6, 2004, at 11:20 PM, Eric Christopher wrote:


Here's the obvious fix for netbsd. Discussed almost a year ago on the
netbsd lists as the way to go. Obvious stopgap until PR 15834 is done.

Sorry for the delay.


Please check this in. The NetBSD system header files are correct, and don't need the implicit "extern C" hack.

Thanks.


-eric


2004-12-06  Eric Christopher  <echristo@redhat.com>
	
	PR target/16317
	* config/netbsd.h: Add NO_IMPLICIT_EXTERN_C.

Index: netbsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/netbsd.h,v
retrieving revision 1.30
diff -u -p -w -r1.30 netbsd.h
--- netbsd.h	17 Oct 2004 18:09:35 -0000	1.30
+++ netbsd.h	7 Dec 2004 07:19:40 -0000
@@ -163,6 +163,9 @@ Boston, MA 02111-1307, USA.  */

#define HANDLE_SYSV_PRAGMA 1

+/* Don't assume anything about the header files.  */
+#undef  NO_IMPLICIT_EXTERN_C
+#define NO_IMPLICIT_EXTERN_C    1

 /* Define some types that are the same on all NetBSD platforms,
    making them agree with <machine/ansi.h>.  */




-- Jason R. Thorpe <thorpej@shagadelic.org>

Attachment: PGP.sig
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]