OSDN Git Service

PR debug/54793
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2013 16:54:14 +0000 (16:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2013 16:54:14 +0000 (16:54 +0000)
commit2436e54f2f9d9bc1369a5c9fef7e4a1cecc37887
tree4264a1a3f1368ddcd45a42f2892206f8d366b30c
parent67336b74a1bd10aea44a91ff85ff247830330234
PR debug/54793
* final.c (need_profile_function): New variable.
(final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
notes, targetm.asm_out.function_prologue doesn't emit anything,
HAVE_prologue and profiler should be emitted before prologue,
set need_profile_function instead of emitting it.
(final_scan_insn): If need_profile_function, emit
profile_function on the first NOTE_INSN_BASIC_BLOCK or
NOTE_INSN_FUNCTION_BEG note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195669 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/final.c