+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*-*-*.
--- /dev/null
+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);
+}