From c9850009529c89c6b634fda500d9c9dff1533bca Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 28 Oct 2016 22:23:33 -0600 Subject: [PATCH] vax.h (REGNO_REG_CLASS): Access the REGNO argument. * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument. * config/spu/spu.h (REGNO_REG_CLASS): Likewise. From-SVN: r241675 --- gcc/ChangeLog | 5 +++++ gcc/config/spu/spu.h | 3 ++- gcc/config/vax/vax.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fca1f235dfa..529b58e50e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-10-28 Jeff Law + + * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument. + * config/spu/spu.h (REGNO_REG_CLASS): Likewise. + 2016-10-28 Eric Botcazou * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter. diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h index c2c31e78900..7b6bad1500d 100644 --- a/gcc/config/spu/spu.h +++ b/gcc/config/spu/spu.h @@ -205,7 +205,8 @@ enum reg_class { {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x3}, /* general regs */ \ {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x3}} /* all regs */ -#define REGNO_REG_CLASS(REGNO) (GENERAL_REGS) +#define REGNO_REG_CLASS(REGNO) ((void)(REGNO), GENERAL_REGS) + #define BASE_REG_CLASS GENERAL_REGS diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index 427c352bc22..dc77aa99223 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -226,7 +226,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; reg number REGNO. This could be a conditional expression or could index an array. */ -#define REGNO_REG_CLASS(REGNO) ALL_REGS +#define REGNO_REG_CLASS(REGNO) ((void)(REGNO), ALL_REGS) /* The class value for index registers, and the one for base regs. */ -- 2.30.2