PR rtl-optimization/17078
* gcc.c-torture/execute/pr17078-1.c: New test case.
From-SVN: r86463
+2004-08-23 Roger Sayle <roger@eyesopen.com>
+
+ PR rtl-optimization/17078
+ * gcc.c-torture/execute/pr17078-1.c: New test case.
+
2004-08-23 Mark Mitchell <mark@codesourcery.com>
PR c/14492
--- /dev/null
+extern void abort(void);
+
+void test(int *ptr)
+{
+ int i = 1;
+ goto useless;
+ if (0)
+ {
+ useless:
+ i = 0;
+ }
+ else
+ i = 1;
+ *ptr = i;
+}
+
+int main()
+{
+ int i = 1;
+ test(&i);
+ if (i)
+ abort ();
+ return 0;
+}
+