aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-optimize.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r--gcc/tree-optimize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index 65954234a5a..e0a49fc4319 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -61,8 +61,13 @@ optimize_function_tree (tree fndecl)
if (errorcount || sorrycount)
return;
+ lower_function_body (&DECL_SAVED_TREE (fndecl));
fnbody = DECL_SAVED_TREE (fndecl);
+ /* Avoid producing notes for blocks. */
+ cfun->dont_emit_block_notes = 1;
+ reset_block_changes ();
+
/* Flatten the trees. */
head.prev = head.next = NULL;
last = &head;