Subject: RE: sparc kernel (2.0_RCn) doesn't like -mcpu=v8?
To: 'Joachim Thiemann' <jthiem@tsp.ece.mcgill.ca>
From: Gary Parker <G.J.Parker@lboro.ac.uk>
List: port-sparc
Date: 11/23/2004 09:32:19
> -----Original Message-----
> From: port-sparc-owner@NetBSD.org
> [mailto:port-sparc-owner@NetBSD.org] On Behalf Of Joachim Thiemann
> Sent: 23 November 2004 03:35
> To: port-sparc@netbsd.org
> Subject: Re: sparc kernel (2.0_RCn) doesn't like -mcpu=v8?
>
> Commenting the COPTS line brings -O2 back...
>
> I've compiled a new kernel under the hypothesis that some
> part of the kernel
> _needs_ the -O2. Thus, all there is in my mk.conf file was
>
> CPUFLAGS+=-mv8 -mtune=supersparc -pipe
>
> getting a typical compile command line of
> cc -mno-fpu -mv8 -mtune=supersparc -pipe -ffreestanding -mv8
> -mtune=supersparc -pipe -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
> -Wno-sign-compare
> -fno-zero-initialized-in-bss -I. -I../../../../arch
> -I../../../.. -nostdinc
> etc...
Iirc, gcc defualts to -O2 if nothing else is specified.
Gary