Patchwork [AArch64-4.7] Fix warning: TARGET_FIXED_CONDITION_CODE_REGS redefined.

login
register
mail settings
Submitter James Greenhalgh
Date March 1, 2013, 10:49 a.m.
Message ID <1362134951-24211-1-git-send-email-james.greenhalgh@arm.com>
Download mbox | patch
Permalink /patch/224284/
State New
Headers show

Comments

James Greenhalgh - March 1, 2013, 10:49 a.m.
Hi,

config/aarch64/aarch64.c attempts to do this:

> #undef TARGET_FIXED_CONDITION_CODE_REG
> #define TARGET_FIXED_CONDITION_CODE_REGS aarch64_fixed_condition_code_regs

This patch adds the S to the end of TARGET_FIXED_CONDITION_CODE_REG
clearing a warning for redefining TARGET_FIXED_CONDITION_REGS

Regression tested on aarch64-none-elf with no issues and checked
to ensure that the warning is cleared.

OK for aarch64-4.7-branch?

Thanks,
James

---
gcc/

2013-03-01  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.c:
	Fix typo in `#undef TARGET_FIXED_CONDITION_CODE_REGS'
Marcus Shawcroft - March 1, 2013, 12:43 p.m.
OK

On 1 March 2013 10:49, James Greenhalgh <james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> config/aarch64/aarch64.c attempts to do this:
>
>> #undef TARGET_FIXED_CONDITION_CODE_REG
>> #define TARGET_FIXED_CONDITION_CODE_REGS aarch64_fixed_condition_code_regs
>
> This patch adds the S to the end of TARGET_FIXED_CONDITION_CODE_REG
> clearing a warning for redefining TARGET_FIXED_CONDITION_REGS
>
> Regression tested on aarch64-none-elf with no issues and checked
> to ensure that the warning is cleared.
>
> OK for aarch64-4.7-branch?
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2013-03-01  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * config/aarch64/aarch64.c:
>         Fix typo in `#undef TARGET_FIXED_CONDITION_CODE_REGS'

Patch

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index b554a0e..5bc6f84 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -7819,7 +7819,7 @@  aarch64_vectorize_vec_perm_const_ok (enum machine_mode vmode,
 #undef TARGET_EXPAND_BUILTIN_VA_START
 #define TARGET_EXPAND_BUILTIN_VA_START aarch64_expand_builtin_va_start
 
-#undef TARGET_FIXED_CONDITION_CODE_REG
+#undef TARGET_FIXED_CONDITION_CODE_REGS
 #define TARGET_FIXED_CONDITION_CODE_REGS aarch64_fixed_condition_code_regs
 
 #undef TARGET_FUNCTION_ARG