summaryrefslogtreecommitdiff
path: root/gcc/lra.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-10 06:36:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-10 06:36:21 +0000
commit4547d1d231fe29ab12dcfe06cacf77a0930a7a45 (patch)
treed92668a145acc74015a11fb8e7537a246a5328bb /gcc/lra.c
parentbbb3cfeab564763aecccbdc6ec03f79742d1fa0e (diff)
downloadgcc-4547d1d231fe29ab12dcfe06cacf77a0930a7a45.tar.gz
2014-03-10 Basile Starynkevitch <basile@starynkevitch.net>
{{merge using svnmerge.py with trunk GCC 4.9 svn rev.208447. All is well compiled.}} git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@208448 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra.c')
-rw-r--r--gcc/lra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lra.c b/gcc/lra.c
index d052b363ce9..77074e29654 100644
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -340,8 +340,9 @@ lra_emit_add (rtx x, rtx y, rtx z)
base = a1;
index = a2;
}
- if (! REG_P (base)
- || (index != NULL_RTX && ! REG_P (index))
+ if (! (REG_P (base) || GET_CODE (base) == SUBREG)
+ || (index != NULL_RTX
+ && ! (REG_P (index) || GET_CODE (index) == SUBREG))
|| (disp != NULL_RTX && ! CONSTANT_P (disp))
|| (scale != NULL_RTX && ! CONSTANT_P (scale)))
{