Date: Sat, 6 Aug 2005 13:58:47 +0200 From: Pawel Worach <pawel.worach@gmail.com> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: freebsd-arch@freebsd.org Subject: Re: [RFC] Kernel patches for compilation with gcc 4.0 Message-ID: <d227e09e050806045866bb63f2@mail.gmail.com> In-Reply-To: <20050803200143.GA70735@crodrigues.org> References: <20050803200143.GA70735@crodrigues.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/3/05, Craig Rodrigues <rodrigc@crodrigues.org> wrote: > I had to apply these patches: > http://people.freebsd.org/~rodrigc/fbsd.makefiles.diff.txt >=20 > 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. >=20 I have played with merging the system compiler features to the gcc 4.0.x br= anch. 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! --=20 Pawel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d227e09e050806045866bb63f2>