summaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-26 12:15:02 +0000
committerrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-26 12:15:02 +0000
commit8c1d2d0f2ecc6c0d7068864cd235f52965107bdd (patch)
tree8e512b9e4e6a3b1209dbef4e1921d3c247a4d37c /gcc/bb-reorder.c
parentcdde426083172aaf59a6c427cc150eb0bd62bbba (diff)
downloadgcc-8c1d2d0f2ecc6c0d7068864cd235f52965107bdd.tar.gz
Fix PR rtl-optimization/34085
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130435 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index 0b707717124..e997dc62b33 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -1947,6 +1947,9 @@ insert_section_boundary_note (void)
{
new_note = emit_note_before (NOTE_INSN_SWITCH_TEXT_SECTIONS,
BB_HEAD (bb));
+ /* ??? This kind of note always lives between basic blocks,
+ but add_insn_before will set BLOCK_FOR_INSN anyway. */
+ BLOCK_FOR_INSN (new_note) = NULL;
break;
}
}