Check opts->x_ix86_arch_string
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Dec 2013 20:12:47 +0000 (20:12 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Dec 2013 20:12:47 +0000 (20:12 +0000)
* config/i386/i386.c (ix86_option_override_internal): Check
opts->x_ix86_arch_string instead of ix86_arch_string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206196 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 3e9214a..8c756a6 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-24   H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/i386.c (ix86_option_override_internal): Check
+       opts->x_ix86_arch_string instead of ix86_arch_string.
+
 2013-12-24  Renlin Li  <Renlin.Li@arm.com>
 
        * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
index ced6618..f5d9ce5 100644 (file)
@@ -3645,7 +3645,7 @@ ix86_option_override_internal (bool main_args_p,
   if (!strcmp (opts->x_ix86_arch_string, "generic"))
     error ("generic CPU can be used only for %stune=%s %s",
           prefix, suffix, sw);
-  else if (!strcmp (ix86_arch_string, "intel"))
+  else if (!strcmp (opts->x_ix86_arch_string, "intel"))
     error ("intel CPU can be used only for %stune=%s %s",
           prefix, suffix, sw);
   else if (!strncmp (opts->x_ix86_arch_string, "generic", 7) || i == pta_size)