aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-06-03 14:42:47 +0000
committerNick Clifton <nickc@redhat.com>2011-06-03 14:42:47 +0000
commita4482bb643ccf7fed49946449b0590cfc070a31b (patch)
tree60449252da0d11c0a5ed7a3f8a2b3a8d3f0b8528 /gas/config
parentbc77a04af76f707badf69fb284552162e1e95fc9 (diff)
downloadgdb-a4482bb643ccf7fed49946449b0590cfc070a31b.zip
gdb-a4482bb643ccf7fed49946449b0590cfc070a31b.tar.gz
gdb-a4482bb643ccf7fed49946449b0590cfc070a31b.tar.bz2
PR gas/12698
* config/tc-arm.c (parse_psr): Set m_profile to false when assembling for any architecture.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index c17a1dc..21ebdbe 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -5395,6 +5395,12 @@ parse_psr (char **str, bfd_boolean lhs)
bfd_boolean is_apsr = FALSE;
bfd_boolean m_profile = ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_m);
+ /* PR gas/12698: If the user has specified -march=all then m_profile will
+ be TRUE, but we want to ignore it in this case as we are building for any
+ CPU type, including non-m variants. */
+ if (selected_cpu.core == arm_arch_any.core)
+ m_profile = FALSE;
+
/* CPSR's and SPSR's can now be lowercase. This is just a convenience
feature for ease of use and backwards compatibility. */
p = *str;