summaryrefslogtreecommitdiff
path: root/gcc/sched-rgn.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 22:19:59 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 22:19:59 +0000
commitbaa8dec7fd2c771ddce19df5bc222614e0d02351 (patch)
treea7f9af2b63f2968b5377756f9c3886f53c2600dd /gcc/sched-rgn.c
parent5edc4f6599d0b5f0379bed87722f90cd9f94da53 (diff)
downloadgcc-baa8dec7fd2c771ddce19df5bc222614e0d02351.tar.gz
* haifa-sched.c (reemit_other_notes): New.
(schedule_block): Use it. * sched-ebb.c (schedule_ebbs): Call remove_unnecessary_notes. * sched-rgn.c (schedule_insns): Likewise. * cfglayout.c (remove_scope_notes): Handle removing note at the end of the insn chain. * function.c (debug_find_var_in_block_tree): New. * gcc.dg/debug-1.c, gcc.dg/debug-2.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-rgn.c')
-rw-r--r--gcc/sched-rgn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c
index ab5adee8159..68242046221 100644
--- a/gcc/sched-rgn.c
+++ b/gcc/sched-rgn.c
@@ -2896,6 +2896,10 @@ schedule_insns (dump_file)
if (n_basic_blocks == 0)
return;
+ /* Remove lexical block notes for empty regions. These get shuffled
+ about during scheduling and confuse the debugging issue. */
+ remove_unnecessary_notes ();
+
nr_inter = 0;
nr_spec = 0;