From 7337ccc4b2d75d2db24dcb1f2e944f50dbe1e2ab Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 11 Nov 2015 14:24:39 +0000 Subject: [PATCH] re PR target/67265 ([x86] 'asm' operand has impossible constraints with -fstack-check) PR target/67265 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise. From-SVN: r230170 --- gcc/config/i386/i386.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 571f7d7b5ec..baa0e031c83 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -12470,7 +12470,11 @@ ix86_finalize_stack_realign_flags (void) && !crtl->accesses_prior_frames && !cfun->calls_alloca && !crtl->calls_eh_return - && !(flag_stack_check && STACK_CHECK_MOVING_SP) + /* See ira_setup_eliminable_regset for the rationale. */ + && !(STACK_CHECK_MOVING_SP + && flag_stack_check + && flag_exceptions + && cfun->can_throw_non_call_exceptions) && !ix86_frame_pointer_required () && get_frame_size () == 0 && ix86_nsaved_sseregs () == 0 -- 2.30.2