re PR c/12553 ([tree-ssa] ICE in gimplify_expr with volatiles)
authorJason Merrill <jason@gcc.gnu.org>
Mon, 20 Oct 2003 22:02:17 +0000 (18:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Oct 2003 22:02:17 +0000 (18:02 -0400)
        PR c/12553
        * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
        appropriately.

From-SVN: r72726

gcc/testsuite/gcc.dg/volatile1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/volatile1.c b/gcc/testsuite/gcc.dg/volatile1.c
new file mode 100644 (file)
index 0000000..61a3979
--- /dev/null
@@ -0,0 +1,9 @@
+/* PR c/12553: we were erroneously setting TREE_SIDE_EFFECTS on &y, which
+   confused tree-ssa.  */
+
+void f()
+{
+  int x;
+  volatile int y;
+  &x == &y;
+}