aboutsummaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb.gcc@gmail.com>2007-11-26 12:15:02 +0000
committerRevital Eres <revitale@gcc.gnu.org>2007-11-26 12:15:02 +0000
commitb8111d54ed21818b9ae41b4f879e44bd435415da (patch)
tree8e512b9e4e6a3b1209dbef4e1921d3c247a4d37c /gcc/bb-reorder.c
parent128d8f68ab2497d74f3b128b1e04a5e03956b45d (diff)
downloadgcc-b8111d54ed21818b9ae41b4f879e44bd435415da.zip
gcc-b8111d54ed21818b9ae41b4f879e44bd435415da.tar.gz
gcc-b8111d54ed21818b9ae41b4f879e44bd435415da.tar.bz2
re PR rtl-optimization/34085 (ICE with -freorder-blocks-and-partition)
Fix PR rtl-optimization/34085 Co-Authored-By: Revital Eres <eres@il.ibm.com> From-SVN: r130435
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 0b70771..e997dc6 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;
}
}