From d303ff9764d326120bfd05eb75e82e66fd12ade3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 4 Feb 2015 12:02:21 -0800 Subject: Actually check in the fix From-SVN: r220416 --- gcc/lra-eliminations.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/lra-eliminations.c') 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, -- cgit v1.1