Fixes a bug building the ARM Linux kernel with a toolchain compiled with CPU_DEFAULT...
authorNick Clifton <nickc@redhat.com>
Tue, 10 Mar 2015 10:01:45 +0000 (10:01 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 10 Mar 2015 10:01:45 +0000 (10:01 +0000)
PR gas/17852
* config/tc-arm.c (md_begin): Ensure that selected_cpu is
initialised when CPU_DEFAULT is defined.

gas/ChangeLog
gas/config/tc-arm.c

index 3044668d716b7202bddb6b46971e41a572235b90..6738d51c2ba2a28973bd380a4eca1b1b6f358bd8 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-10  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/17852
+       * config/tc-arm.c (md_begin): Ensure that selected_cpu is
+       initialised when CPU_DEFAULT is defined.
+
 2015-03-05  Nick Clifton  <nickc@redhat.com>
 
        * config/tc-v850.c (md_parse_option): Fix code to set or clear
index 08155ac783e4ac46a492a1cfac216e57380e2442..c5e627c10084289f1d6438063e46336f5a8e238d 100644 (file)
@@ -23951,6 +23951,8 @@ md_begin (void)
       mcpu_cpu_opt = &cpu_default;
       selected_cpu = cpu_default;
     }
+  else if (no_cpu_selected ())
+    selected_cpu = cpu_default;
 #else
   if (mcpu_cpu_opt)
     selected_cpu = *mcpu_cpu_opt;