kernel gcc34 patch

Matthew Dillon dillon at apollo.backplane.com
Mon Jan 5 16:05:32 PST 2004


:This patch lets the kernel be built with gcc34.  It builds with gcc295
:with this patch, but I have not tried it.  The manpage for gcc2.95 has
:no mention of -fformat-extensions though, so I dont think it should
:hurt anything.
:
:-Craig
:-- 
:------------------------------------------------------------------------
:Craig Dooley                                            craig at xxxxxxxxxx
:------------------------------------------------------------------------
:
:--nVMJ2NtxeReIH9PS
:Content-Type: text/plain; charset=us-ascii
:Content-Disposition: attachment; filename="gcc34kern.patch"
:
:Index: sys/conf/bsd.kern.mk
:===================================================================
:RCS file: /src/dcvs/src/sys/conf/bsd.kern.mk,v
:retrieving revision 1.2
:diff -u -r1.2 bsd.kern.mk
:--- sys/conf/bsd.kern.mk	15 Nov 2003 21:05:40 -0000	1.2
:+++ sys/conf/bsd.kern.mk	29 Dec 2003 19:28:14 -0000
:@@ -10,7 +10,7 @@
: #
: CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
: 		-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
:-		-fformat-extensions -ansi
:+		-ansi
: #
: # The following flags are next up for working on:
: #	-W
:
:--nVMJ2NtxeReIH9PS--

    I don't think we ever resolved this, but in order to maintain 
    compatibility with the existing build system the gcc34 port will have
    to support the -fformat-extensions option, or support the option as
    a NOP.

    If you would like to move on to other things I can take your existing
    gcc34 patch and add the two necessary items (__DragonFly__ and 
    -fformat-extensions support).  I think I could crank that out in a day.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Submit mailing list