diff options
author | Jeff Law <law@redhat.com> | 2016-10-28 22:23:33 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2016-10-28 22:23:33 -0600 |
commit | c9850009529c89c6b634fda500d9c9dff1533bca (patch) | |
tree | ea8703245912f61b2ea157b1fb104bb0c5d86275 /gcc/config | |
parent | fde1c2de05e4d0bd470f2883aa39b3c35395a419 (diff) | |
download | gcc-c9850009529c89c6b634fda500d9c9dff1533bca.zip gcc-c9850009529c89c6b634fda500d9c9dff1533bca.tar.gz gcc-c9850009529c89c6b634fda500d9c9dff1533bca.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/spu/spu.h | 3 | ||||
-rw-r--r-- | gcc/config/vax/vax.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h index c2c31e7..7b6bad1 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 427c352..dc77aa9 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. */ |