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

Re: Default settings of arch and cpu on ix86


>>>>> Richard Henderson writes:

 > On Mon, Jun 07, 1999 at 08:50:09AM +0200, Andreas Jaeger wrote:
>> IMHO this should be changed to use PROCESSOR_DEFAULT for both arch and cpu.

 > I don't agree.  Currently one has to use -march=i686 to generate
 > code incompatible with the 80386.  Changing that is not something
 > we should do without shouting a warning from the mountain tops.
But this might change.  The pentium and i486 have opcodes that aren't
supported on i386.

 > The benefits don't seem worth the pain.
I see the problem now.

But what about the second part of the patch.  There is clearly a bug
since arch_string and arch might get non-matching values.  If you're
in favor of keeping arch to pentium, we should change the ix86_arch
assignment (and not as in my patch below the ix86_arch_string
assignment).

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

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


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