From: Jason Merrill Date: Mon, 20 Oct 2003 22:02:17 +0000 (-0400) Subject: re PR c/12553 ([tree-ssa] ICE in gimplify_expr with volatiles) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1132e0bef04e44f652a0ac5e0141022d2d77e0a;p=gcc.git re PR c/12553 ([tree-ssa] ICE in gimplify_expr with volatiles) PR c/12553 * tree.c (build1) : Set TREE_SIDE_EFFECTS appropriately. From-SVN: r72726 --- diff --git a/gcc/testsuite/gcc.dg/volatile1.c b/gcc/testsuite/gcc.dg/volatile1.c new file mode 100644 index 00000000000..61a3979b704 --- /dev/null +++ b/gcc/testsuite/gcc.dg/volatile1.c @@ -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; +}