diff options
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c index 948ecd3..d5a1a30 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1644,7 +1644,10 @@ final_start_function (first, file, optimize) if (write_symbols) { number_blocks (current_function_decl); - remove_unncessary_notes (); + /* Scheduling packs block notes together at the top of a basic block, + so we can't learn anything from them. */ + if (! flag_schedule_insns && ! flag_schedule_insns_after_reload) + remove_unncessary_notes (); /* We never actually put out begin/end notes for the top-level block in the function. But, conceptually, that block is always needed. */ |