aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug-1.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-12-27 14:19:59 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-12-27 14:19:59 -0800
commitdf8992f8f3270619b200bd065b3da9de118efc77 (patch)
treea7f9af2b63f2968b5377756f9c3886f53c2600dd /gcc/testsuite/gcc.dg/debug-1.c
parentbb2ae697ab610f10045da76435c9934d06dce608 (diff)
downloadgcc-df8992f8f3270619b200bd065b3da9de118efc77.zip
gcc-df8992f8f3270619b200bd065b3da9de118efc77.tar.gz
gcc-df8992f8f3270619b200bd065b3da9de118efc77.tar.bz2
haifa-sched.c (reemit_other_notes): New.
* 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. From-SVN: r48333
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/debug-1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug-1.c b/gcc/testsuite/gcc.dg/debug-1.c
new file mode 100644
index 0000000..1e53b14
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/debug-1.c
@@ -0,0 +1,14 @@
+/* Verify that the scheduler does not discard the lexical block. */
+/* { dg-do compile } */
+/* { dg-options "-O2 -g -dA" } */
+/* { dg-final { scan-assembler "xyzzy" } } */
+
+long foo(long p)
+{
+ {
+ long xyzzy = 0;
+ if (p)
+ xyzzy = 2;
+ return xyzzy;
+ }
+}