From: Nick Clifton Date: Thu, 14 Mar 2013 10:23:13 +0000 (+0000) Subject: PR gas/15273 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b10bf8c587a51b028843702738c1fec4a856e67e;p=binutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5c1e97d8cb7..36a07e23eda 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2013-03-14 Nick Clifton + + 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 PR gas/15212 diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index ff8505c8b0e..27d236161b5 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);