summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44028.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-10 18:28:03 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-10 18:28:03 +0000
commitf145fac4afd9586470a3337fe49279ad4a289b33 (patch)
treed86819bbb461712b2745a75881652b0b4f22b6e0 /gcc/testsuite/gcc.dg/pr44028.c
parent2ad972c5ac43a624aa71b28791ae54ffacff57cf (diff)
downloadgcc-f145fac4afd9586470a3337fe49279ad4a289b33.tar.gz
PR debug/44028
* haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC, clear also INSN_REG_USE_LIST. * gcc.dg/pr44028.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr44028.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr44028.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr44028.c b/gcc/testsuite/gcc.dg/pr44028.c
new file mode 100644
index 00000000000..33452172bd7
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr44028.c
@@ -0,0 +1,22 @@
+/* PR debug/44028 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -fcompare-debug" } */
+/* { dg-options "-O3 -fsched-pressure -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } } */
+
+struct S { int val[16]; };
+
+static inline int
+bar (struct S x)
+{
+ long double pc = 0;
+ int i;
+ for (i = 0; i < 16; i++)
+ pc += x.val[i];
+ return pc;
+}
+
+int
+foo (struct S x)
+{
+ return bar (x);
+}