This is the mail archive of the gcc-bugs@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]

gcc-2.95.1 configured for i386 builds code for i586


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;
     }
 


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