xfs
[Top] [All Lists]

Re: gcc-2.96-nn status

To: Joseph Fannin <jhf@xxxxxxxxxxxxxx>
Subject: Re: gcc-2.96-nn status
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Sep 2001 11:43:20 +1000
Cc: Seth Mos <knuffie@xxxxxxxxx>, Alan Eldridge <alane@xxxxxxxxxxxx>, SGI XFS Dev List <linux-xfs@xxxxxxxxxxx>
In-reply-to: Your message of "Tue, 18 Sep 2001 21:15:55 -0400." <20010918202402.B33524B542@zion.rivenstone.net>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Tue, 18 Sep 2001 21:15:55 -0400, 
Joseph Fannin <jhf@xxxxxxxxxxxxxx> wrote:
>    kgcc / egcs doesn't have k6 optimizations either. :-(  Yet the kbuild 
>scripts somehow know this and use -march=i586 when -march=k6 is not 
>available.  I'm sure the same test could be created for the athlon, and would 
>be accepted into the kernel, but no one has bothered to do it.

2.4.9 arch/i386/Makefile already does this

ifdef CONFIG_MK6
CFLAGS += $(shell if $(CC) -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 
2>&1; then echo "-march=k6"; else echo "-march=i586"; fi)
endif

ifdef CONFIG_MK7
CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null 
>/dev/null 2>&1; then echo "-march=athlon"; else echo "-march=i686 -mal
ign-functions=4"; fi)
endif


<Prev in Thread] Current Thread [Next in Thread>