[RFC] Kernel patches for compilation with gcc 4.0
Pawel Worach
pawel.worach at gmail.com
Sat Aug 6 11:58:48 GMT 2005
On 8/3/05, Craig Rodrigues <rodrigc at crodrigues.org> wrote:
> I had to apply these patches:
> http://people.freebsd.org/~rodrigc/fbsd.makefiles.diff.txt
>
> to the kernel makefile rules because "-I-" is removed from gcc 4.0,
> and "-fformat-extensions" is a FreeBSD extension to GCC which is not
> in the ports version of the compiler.
>
I have played with merging the system compiler features to the gcc 4.0.x branch.
The result is available here: http://62.119.221.30/gcc4/
Currently there is a defect in our system compiler, you can use the
format-extenstions without specifying the -fformat-extensions argument
since flag_format_extensions is never checked, I fixed that and
instead it yields a strange warning so I don't know if it's entirely
correct. We also had some other variables (one of them which
duplicated the purpose of flag_format_extensions) which where never
used, likely left-over bits from gcc 2.x days.
I have only tested it on i386 and the box booted the resulting kernel
just fine to single-user,
the compiler speed is a bit slower but the difference was smaller than
I expected.
Thanks for the kernel patches Craig!
--
Pawel
More information about the freebsd-arch
mailing list