[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling the kernel with the new gcc - help



On Fri, Sep 03, 1999 at 05:44:22PM +0200, Juli-Manel Merino Vidal wrote:
> On Fri, 3 Sep 1999, Gordon Russell wrote:
> 
> > 
> > I have compiled the kernel many times in the past, but now I am really stuck...
> > 
> > I am getting messages like:
> > 
> > seagate.c: In function `internal_command':
> > seagate.c:1252: Invalid `asm' statement:
> > seagate.c:1252: fixed or forbidden register 3 (bx) was spilled for class BREG.
> > 
> > I am using kernel 2.2.10, and the new gcc 2.95-1.
> > I changed the CFLAGS to have -fno-strict-aliasing, as advised in the README.
> 
> I've compiled 2.2.12 with that gcc and WITHOUT adding that option and
> works fine.

2.2.12 appears to add that option on its own.  From Makefile:

# use '-fno-strict-aliasing', but only if the compiler can take it
CFLAGS += $(shell if $(CC) -fno-strict-aliasing -S -o /dev/null -xc
/dev/null >/dev/null 2>&1; then echo "-fno-strict-aliasing"; fi)
 
Bob

-- 
Bob Nielsen                 Internet: nielsen@primenet.com
Tucson, AZ                  AMPRnet:  w6swe@w6swe.ampr.org
DM42nh                      http://www.primenet.com/~nielsen


Reply to: