aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-03-10 10:01:45 +0000
committerNick Clifton <nickc@redhat.com>2015-03-10 10:01:45 +0000
commit73f43896e3bfcb090552f359422857a0bedd77f6 (patch)
tree5cfc580ef52efd9dccc97c737589fa75cbbf1e61 /gas/config
parent6defcd57e9df4f61cd0c59e3d9b66b6b071af808 (diff)
downloadgdb-73f43896e3bfcb090552f359422857a0bedd77f6.zip
gdb-73f43896e3bfcb090552f359422857a0bedd77f6.tar.gz
gdb-73f43896e3bfcb090552f359422857a0bedd77f6.tar.bz2
Fixes a bug building the ARM Linux kernel with a toolchain compiled with CPU_DEFAULT set.
PR gas/17852 * config/tc-arm.c (md_begin): Ensure that selected_cpu is initialised when CPU_DEFAULT is defined.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 08155ac..c5e627c 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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;