diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-30 14:33:48 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-30 14:33:48 +0000 |
commit | afe4bda4b617c104c348a5cfe42737bdfd77987f (patch) | |
tree | 3955091945f8c416b827442dd640d5ece09dba51 | |
parent | 58b8343599a32fdbeffca1d800fce292690316cf (diff) | |
download | gcc-afe4bda4b617c104c348a5cfe42737bdfd77987f.tar.gz |
gcc/
* lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
rather than gen_rtx_SUBREG.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192988 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lra-eliminations.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1eabfc9488..2ea4266ad06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com> + + * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg + rather than gen_rtx_SUBREG. + 2012-10-30 Richard Biener <rguenther@suse.de> * gimple.h (gimple_store_p): New predicate. diff --git a/gcc/lra-eliminations.c b/gcc/lra-eliminations.c index 5f8a8c8d41f..24c58f699c9 100644 --- a/gcc/lra-eliminations.c +++ b/gcc/lra-eliminations.c @@ -550,7 +550,8 @@ lra_eliminate_regs_1 (rtx x, enum machine_mode mem_mode, return x; } else - return gen_rtx_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x)); + return simplify_gen_subreg (GET_MODE (x), new_rtx, + GET_MODE (new_rtx), SUBREG_BYTE (x)); } return x; |