]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/40797 (ICE in df_refs_verify, at df-scan.c:4361)
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 11 Mar 2013 01:04:13 +0000 (01:04 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 11 Mar 2013 01:04:13 +0000 (01:04 +0000)
PR target/40797
* gcc.c-torture/compile/pr40797.c: New.

From-SVN: r196590

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr40797.c [new file with mode: 0644]

index bdc4b9c3cf4b1cd4f518808b4858c95bef3e8194..e589f973a516ce022df59b2cf5b471d028f46ac0 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/40797
+       * gcc.c-torture/compile/pr40797.c: New.
+
 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * gcc.dg/pr44194-1.c: Skip compilation on hppa*64*-*-*.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr40797.c b/gcc/testsuite/gcc.c-torture/compile/pr40797.c
new file mode 100644 (file)
index 0000000..001d1b5
--- /dev/null
@@ -0,0 +1,16 @@
+typedef struct str { short x, y;} S;
+
+static short
+bar (short ch, short sl, short sr, short tl, short tr)
+{
+  return 0;
+}
+
+void
+foo (short ch, S *pi, short nc, S *po)
+{
+  short clo, chi, lo, hi;
+
+  po->x = bar (ch, clo, chi, pi[lo].x, pi[hi].x);
+  po->y = bar (ch, clo, chi, pi[lo].y, pi[hi].y);
+}