aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2013-12-24 20:12:47 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2013-12-24 12:12:47 -0800
commit50a1f11183ab8a1f812d5e2f69227c575f395b70 (patch)
tree690a83222dfab16a8b350ec9286f5c0c8198b6b1
parentc75d51aa81c517b616c2984251a4364d45fbd781 (diff)
downloadgcc-50a1f11183ab8a1f812d5e2f69227c575f395b70.zip
gcc-50a1f11183ab8a1f812d5e2f69227c575f395b70.tar.gz
gcc-50a1f11183ab8a1f812d5e2f69227c575f395b70.tar.bz2
Check opts->x_ix86_arch_string
* config/i386/i386.c (ix86_option_override_internal): Check opts->x_ix86_arch_string instead of ix86_arch_string. From-SVN: r206196
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e9214a..8c756a6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index ced6618..f5d9ce5 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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)