aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-eliminations.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gcc.gnu.org>2015-02-04 12:02:21 -0800
committerH.J. Lu <hjl@gcc.gnu.org>2015-02-04 12:02:21 -0800
commitd303ff9764d326120bfd05eb75e82e66fd12ade3 (patch)
treec06ea3aa98c46eede58a656ea99558d44917aae4 /gcc/lra-eliminations.c
parent7489140d7d894778c5776cf7277af35b28d19d1a (diff)
downloadgcc-d303ff9764d326120bfd05eb75e82e66fd12ade3.zip
gcc-d303ff9764d326120bfd05eb75e82e66fd12ade3.tar.gz
gcc-d303ff9764d326120bfd05eb75e82e66fd12ade3.tar.bz2
Actually check in the fix
From-SVN: r220416
Diffstat (limited to 'gcc/lra-eliminations.c')
-rw-r--r--gcc/lra-eliminations.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lra-eliminations.c b/gcc/lra-eliminations.c
index fe05a1f..64eec4a 100644
--- a/gcc/lra-eliminations.c
+++ b/gcc/lra-eliminations.c
@@ -182,6 +182,8 @@ setup_can_eliminate (struct lra_elim_table *ep, bool value)
if (! value
&& ep->from == FRAME_POINTER_REGNUM && ep->to == STACK_POINTER_REGNUM)
frame_pointer_needed = 1;
+ if (!frame_pointer_needed)
+ REGNO_POINTER_ALIGN (HARD_FRAME_POINTER_REGNUM) = 0;
}
/* Map: eliminable "from" register -> its current elimination,