diff options
author | DJ Delorie <dj@redhat.com> | 2009-07-21 19:49:41 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2009-07-21 19:49:41 -0400 |
commit | 072ebd49e9e846f7b323842a58f41d71def2ab7b (patch) | |
tree | 0f522e5ea91fccf3877a3b40cdf731985f926cdc /gcc | |
parent | 4afe7ad7fb6ebd521a6ebf8098e362d4d4d9d808 (diff) | |
download | gcc-072ebd49e9e846f7b323842a58f41d71def2ab7b.zip gcc-072ebd49e9e846f7b323842a58f41d71def2ab7b.tar.gz gcc-072ebd49e9e846f7b323842a58f41d71def2ab7b.tar.bz2 |
mep.c (mep_legitimize_arg): Leave control registers alone too.
* config/mep/mep.c (mep_legitimize_arg): Leave control registers
alone too.
From-SVN: r149869
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mep/mep.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 670b06c..ced279d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-07-21 DJ Delorie <dj@redhat.com> + + * config/mep/mep.c (mep_legitimize_arg): Leave control registers + alone too. + 2009-07-21 Jason Merrill <jason@redhat.com> * c-common.c (max_tinst_depth): Increase default to 1024. diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index 80d2018..a5869ca 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -6204,7 +6204,9 @@ mep_legitimize_arg (const struct insn_operand_data *operand, rtx arg, /* But not for control registers. */ if (operand->constraint[0] == '=' && (! REG_P (arg) - || ! (CCR_REGNO_P (REGNO (arg)) || CR_REGNO_P (REGNO (arg))) + || ! (CONTROL_REGNO_P (REGNO (arg)) + || CCR_REGNO_P (REGNO (arg)) + || CR_REGNO_P (REGNO (arg))) )) return gen_reg_rtx (operand->mode); |