From 03e621be975dacc9cec9f5782698bdb098f6a49c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 19 Nov 2013 17:40:31 +0000 Subject: [PATCH] * config/tc-aarch64.c (parse_sys_reg): Do not issue error messages for deprecated system registers when parsing pstate fields. --- gas/ChangeLog | 7 ++++++- gas/config/tc-aarch64.c | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 94c2d5835eb..e0535a0a4e1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2013-11-19 Nick Clifton + + * config/tc-aarch64.c (parse_sys_reg): Do not issue error messages + for deprecated system registers when parsing pstate fields. + 2013-11-19 Catherine Moore * config/tc-mips.c (mips_fix_pmc_rm7000): Declare. @@ -10,7 +15,7 @@ OPTION_NO_FIX_PMC_RM7000. * doc/as.texinfo: Document new options. * doc/c-mips.texi: Likewise. - + 2013-11-19 Alexey Makhalov PR gas/16109 diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index fb0ae33326d..7d50381ec1b 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -3314,7 +3314,10 @@ parse_sys_reg (char **str, struct hash_control *sys_regs, int imple_defined_p) } else { - if (aarch64_sys_reg_deprecated_p (o)) + /* Only check system register names for deprecation. If we have + been given a PSTATE field name (impled_defined_p == 0) then allow + any value. */ + if (imple_defined_p && aarch64_sys_reg_deprecated_p (o)) as_warn (_("system register name '%s' is deprecated and may be " "removed in a future release"), buf); value = o->value; -- 2.30.2