This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.0.2 wrongly detect a Pentium II as a i386 on SCO5 - patch included


Hi,

On sco-3.2v5.0.4 `configure' wrongly detect a Pentium II as a i386.
uname output:

# uname -X

System = SCO_SV
Node = merlin
Release = 3.2v5.0.4
KernelID = 97/09/03
Machine = Pent II
BusType = ISA
Serial = 4EL025833
Users = 5-user
OEM# = 0
Origin# = 1
NumCPU = 1

I don't know if this has any implications on code generation. A simple
 `gcc -S foo.c' report `-mcpu=i386 -march=pentium'

Also, I don't know if UNAME_MACHINE should be set to i586 ou i686? In
 the simple diff to the top config.guess that I include, I set it to
 i586. Please change if appropriate.


*** config.guess- Mon Apr 27 17:28:31 1998
--- config.guess Mon Apr 27 17:29:12 1998
***************
*** 674,680 ****
        elif /bin/uname -X 2>/dev/null >/dev/null ; then
                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*=
//')`
                (/bin/uname -X|egrep i80486 >/dev/null) &&
UNAME_MACHINE=i486
!               (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
                        && UNAME_MACHINE=i586
                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
        else
--- 674,680 ----
        elif /bin/uname -X 2>/dev/null >/dev/null ; then
                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*=
//')`
                (/bin/uname -X|egrep i80486 >/dev/null) &&
UNAME_MACHINE=i486
!               (/bin/uname -X|egrep '^Machine.*Pent' >/dev/null) \
                        && UNAME_MACHINE=i586
                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
        else


Thanks,
Joao

-- 
Joao Cardoso			|	e-mail: jcardoso@inescn.pt
INESC, R. Jose Falcao 110	|	tel:	+ 351 2 2094345
4000 PORTO, PORTUGAL		|	fax:	+ 351 2 2008487


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]