PR jit/64810: fix for arm_option_override
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 2 Feb 2015 16:11:15 +0000 (16:11 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 2 Feb 2015 16:11:15 +0000 (16:11 +0000)
gcc/ChangeLog:
PR jit/64810
* config/arm/arm.c (arm_option_override): Set
arm_selected_arch/cpu/tune to NULL on entry.

From-SVN: r220351

gcc/ChangeLog
gcc/config/arm/arm.c

index 4436e3f5a18662bce3abc36324579e4a1f54d06e..467a668d64770b36c5e7e0ec434998d19c06889f 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-02  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/64810
+       * config/arm/arm.c (arm_option_override): Set
+       arm_selected_arch/cpu/tune to NULL on entry.
+
 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
            Andrew Pinski  <pinskia@gcc.gnu.org>
            Jakub Jelinek  <jakub@gcc.gnu.org>
index 246298a87245b67b7f9453c9b8ae69d0aeac6edd..c7c0ecf20d0465a1df5d35461823dedca928e161 100644 (file)
@@ -2627,6 +2627,10 @@ arm_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p,
 static void
 arm_option_override (void)
 {
+  arm_selected_arch = NULL;
+  arm_selected_cpu = NULL;
+  arm_selected_tune = NULL;
+
   if (global_options_set.x_arm_arch_option)
     arm_selected_arch = &all_architectures[arm_arch_option];