summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2015-11-11 14:22:43 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-11-11 14:22:43 +0000
commit7700cd858ff97a257d6f48b0d079780f445821da (patch)
tree65037ebab2d96259aa483e1bd38a87a27b451d5b /gcc/ira.c
parent0bf5130af0d1c19855f244ae874180ed28f1cb3e (diff)
downloadgcc-7700cd858ff97a257d6f48b0d079780f445821da.tar.gz
re PR target/67265 ([x86] 'asm' operand has impossible constraints with -fstack-check)
PR target/67265 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the frame pointer for stack checking if non-call exceptions aren't used. * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise. From-SVN: r230168
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index e16d062e35a..97edf8c4816 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -2259,9 +2259,12 @@ ira_setup_eliminable_regset (void)
frame_pointer_needed
= (! flag_omit_frame_pointer
|| (cfun->calls_alloca && EXIT_IGNORE_STACK)
- /* We need the frame pointer to catch stack overflow exceptions
- if the stack pointer is moving. */
- || (flag_stack_check && STACK_CHECK_MOVING_SP)
+ /* We need the frame pointer to catch stack overflow exceptions if
+ the stack pointer is moving (as for the alloca case just above). */
+ || (STACK_CHECK_MOVING_SP
+ && flag_stack_check
+ && flag_exceptions
+ && cfun->can_throw_non_call_exceptions)
|| crtl->accesses_prior_frames
|| (SUPPORTS_STACK_ALIGNMENT && crtl->stack_realign_needed)
/* We need a frame pointer for all Cilk Plus functions that use