]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Check opts->x_ix86_arch_string
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 24 Dec 2013 20:12:47 +0000 (20:12 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 24 Dec 2013 20:12:47 +0000 (12:12 -0800)
* config/i386/i386.c (ix86_option_override_internal): Check
opts->x_ix86_arch_string instead of ix86_arch_string.

From-SVN: r206196

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

index 3e9214a5f32af8722e3df4aecc33a3fc77966f46..8c756a6dcecf79cef5e3ba69dede18e8da03be6a 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 ced6618fc4ca46e9189ec8e3ae8d83ca6690f127..f5d9ce56e866499932386ea74f876a39a617ed69 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)