This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix location info on stack checking sequence
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Nov 2010 19:17:08 +0100
- Subject: Fix location info on stack checking sequence
When stack checking is still done the old way (-fstack-check=generic), the
sequence of insns is emitted right after the prologue but generated from
expand_function_end, so it inherits the locator of the epilogue...
Tested on i586-suse-linux, applied on the mainline as obvious.
2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
* function.c (expand_function_end): Set the locator of the prologue on
the stack checking insns.
--
Eric Botcazou
Index: function.c
===================================================================
--- function.c (revision 166650)
+++ function.c (working copy)
@@ -4867,6 +4867,7 @@ expand_function_end (void)
probe_stack_range (STACK_OLD_CHECK_PROTECT, max_frame_size);
seq = get_insns ();
end_sequence ();
+ set_insn_locators (seq, prologue_locator);
emit_insn_before (seq, stack_check_probe_note);
break;
}