PR gas/15273
authorNick Clifton <nickc@redhat.com>
Thu, 14 Mar 2013 10:23:13 +0000 (10:23 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 14 Mar 2013 10:23:13 +0000 (10:23 +0000)
* config/tc-arm.c (do_co_reg): Do not call check_obsolete with a
NULL message, instead just check ARM_CPU_IS_ANY directly.

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

index 5c1e97d8cb780f7a7f56c134891929dd97bd7cf5..36a07e23eda43ba1d030996567c6f630c6d1ad73 100644 (file)
@@ -1,3 +1,9 @@
+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
index ff8505c8b0efa168ffa44e1b61c875eccbf4ab3d..27d236161b520383ad502d4640c9b27d9a784076 100644 (file)
@@ -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);