aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-03-14 10:23:13 +0000
committerNick Clifton <nickc@redhat.com>2013-03-14 10:23:13 +0000
commitb10bf8c587a51b028843702738c1fec4a856e67e (patch)
treeb563f429497afd2b07ddaa4d08903b097f09a836 /gas
parentba724cfc0cf40f4950e40d0b9cda3ef24398fb8c (diff)
downloadgdb-b10bf8c587a51b028843702738c1fec4a856e67e.zip
gdb-b10bf8c587a51b028843702738c1fec4a856e67e.tar.gz
gdb-b10bf8c587a51b028843702738c1fec4a856e67e.tar.bz2
PR gas/15273
* config/tc-arm.c (do_co_reg): Do not call check_obsolete with a NULL message, instead just check ARM_CPU_IS_ANY directly.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-arm.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5c1e97d..36a07e2 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2013-03-14 Nick Clifton <nickc@redhat.com>
+ PR gas/15273
+ * config/tc-arm.c (do_co_reg): Do not call check_obsolete with a
+ NULL message, instead just check ARM_CPU_IS_ANY directly.
+
+2013-03-14 Nick Clifton <nickc@redhat.com>
+
PR gas/15212
* doc/c-arc.texi (ARC Directives): Use @code instead of @bullte
for table format.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index ff8505c..27d2361 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -7828,7 +7828,7 @@ do_co_reg (void)
&& inst.operands[4].reg == r->crm
&& inst.operands[5].imm == r->opc2)
{
- if (!check_obsolete (&r->obsoleted, r->obs_msg)
+ if (! ARM_CPU_IS_ANY (cpu_variant)
&& warn_on_deprecated
&& ARM_CPU_HAS_FEATURE (cpu_variant, r->deprecated))
as_warn ("%s", r->dep_msg);