This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.1 configured for i386 builds code for i586
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-2.95.1 configured for i386 builds code for i586
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sat, 21 Aug 1999 17:44:55 +0200 (MET DST)
- CC: 42743 at bugs dot debian dot org
Building a compiler configured with "configure ... i386-linux" on a
i586 or i686 results in a compiler generating code for i586, optimized
for i386.
Running `gcc -v -Q' reveals that gcc and/or the specs default to
`-mcpu=i386 -march=i586'
I remember having read, that gcc now defaults to build pentium code.
But do I need to build a cross compiler for i386?
--- gcc/config/i386/i386.c~ Sat Aug 14 19:35:24 1999
+++ gcc/config/i386/i386.c Sat Aug 14 19:37:00 1999
@@ -291,7 +291,7 @@
if (ix86_arch_string == 0)
{
- ix86_arch_string = PROCESSOR_PENTIUM_STRING;
+ ix86_arch_string = PROCESSOR_DEFAULT_STRING;
if (ix86_cpu_string == 0)
ix86_cpu_string = PROCESSOR_DEFAULT_STRING;
}
@@ -308,7 +308,7 @@
if (i == ptt_size)
{
error ("bad value (%s) for -march= switch", ix86_arch_string);
- ix86_arch_string = PROCESSOR_PENTIUM_STRING;
+ ix86_arch_string = PROCESSOR_DEFAULT_STRING;
ix86_arch = PROCESSOR_DEFAULT;
}