Subject: Re: Stock i386 kernels with GCC4 (patches included)
To: None <current-users@NetBSD.org>
From: Sergey Lungu <sergey.lungu@gmail.com>
List: current-users
Date: 05/30/2006 04:13:25
--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, May 30, 2006 at 01:17:14AM +0400, Sergey Lungu wrote:
> On Mon, May 29, 2006 at 08:04:23PM +0200, Geert Hendrickx wrote:
> > On Tue, May 30, 2006 at 12:46:00AM +0400, Sergey Lungu wrote:
> > > - NET4501, XEN0, XENU and XEN3_U do not build at all, because of the
> > > makeoptions with -mcpu option, wich is not recognized by GCC4 anymore.
> > > Don't know how fix this without breaking GCC3 builds, 'cause `config'
> > > has no `if' statements (Am I right?:). BTW, should they be in configs
> > > at all?
> >
> > % grep mcpu *
> > NET4501:makeoptions COPTS="-Os -mcpu=i486"
> > XEN0:makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
> > XEN3_U:makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
> > XENU:makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
> >
> > the -mcpu flags in XEN* are redundant because they're implied by the -march
> > flags already, and NET4501 may use -march=i486 because the Soekrises have
> > an i486 compatible CPU.
>
> You are right! Then this should be fixed like this...
The patch is attached.
--
Sergey Lungu
--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="configs.diff"
--- NET4501.orig 2006-05-30 04:04:09.000000000 +0400
+++ NET4501 2006-05-30 04:04:49.000000000 +0400
@@ -23,7 +23,7 @@
# AMD Elan SC520's timer runs at a different frequency
options TIMER_FREQ=1189200
-makeoptions COPTS="-Os -mcpu=i486"
+makeoptions COPTS="-Os -march=i486"
# CPU-related options.
#options MATH_EMULATE # floating point emulation
--- XEN0.orig 2006-05-30 04:04:22.000000000 +0400
+++ XEN0 2006-05-30 04:05:01.000000000 +0400
@@ -18,7 +18,7 @@
#options MCLSHIFT=12
options I686_CPU
-makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
+makeoptions COPTS="-O2 -march=i686"
#options VM86 # virtual 8086 emulation
#options USER_LDT # user-settable LDT; used by WINE
--- XENU.orig 2006-05-30 04:04:28.000000000 +0400
+++ XENU 2006-05-30 04:07:15.000000000 +0400
@@ -15,7 +15,7 @@
#options DOM0OPS
options I686_CPU
-makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
+makeoptions COPTS="-O2 -march=i686"
#options VM86 # virtual 8086 emulation
#options USER_LDT # user-settable LDT; used by WINE
--- XEN3_U.orig 2006-05-30 04:04:37.000000000 +0400
+++ XEN3_U 2006-05-30 04:07:24.000000000 +0400
@@ -18,7 +18,7 @@
#options DOM0OPS
options I686_CPU
-makeoptions COPTS="-O2 -mcpu=i686 -march=i686"
+makeoptions COPTS="-O2 -march=i686"
#options VM86 # virtual 8086 emulation
#options USER_LDT # user-settable LDT; used by WINE
--7AUc2qLy4jB3hD7Z--