This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
 	  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]