Commit 84c1fa24 by Ulrich Weigand Committed by Ulrich Weigand

function.c (thread_prologue_and_epilogue): Move NOTE_INSN_FUNCTION_END and…

function.c (thread_prologue_and_epilogue): Move NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes before the epilogue.

	* function.c (thread_prologue_and_epilogue): Move
	NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
	before the epilogue.

From-SVN: r80025
parent 053ee101
2004-03-27 Ulrich Weigand <uweigand@de.ibm.com> 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
* function.c (thread_prologue_and_epilogue): Move
NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
before the epilogue.
2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
* expr.c (store_constructor): Use gen_int_mode to correctly * expr.c (store_constructor): Use gen_int_mode to correctly
sign-extend CONST_INT value. sign-extend CONST_INT value.
......
...@@ -8014,11 +8014,16 @@ epilogue_done: ...@@ -8014,11 +8014,16 @@ epilogue_done:
/* Similarly, move any line notes that appear after the epilogue. /* Similarly, move any line notes that appear after the epilogue.
There is no need, however, to be quite so anal about the existence There is no need, however, to be quite so anal about the existence
of such a note. */ of such a note. Also move the NOTE_INSN_FUNCTION_END and (possibly)
NOTE_INSN_FUNCTION_BEG notes, as those can be relevant for debug
info generation. */
for (insn = epilogue_end; insn; insn = next) for (insn = epilogue_end; insn; insn = next)
{ {
next = NEXT_INSN (insn); next = NEXT_INSN (insn);
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0) if (GET_CODE (insn) == NOTE
&& (NOTE_LINE_NUMBER (insn) > 0
|| NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG
|| NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_END))
reorder_insns (insn, insn, PREV_INSN (epilogue_end)); reorder_insns (insn, insn, PREV_INSN (epilogue_end));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment