diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2003-10-20 18:02:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-10-20 18:02:17 -0400 |
commit | d1132e0bef04e44f652a0ac5e0141022d2d77e0a (patch) | |
tree | f8c322934f4020b5fc80ac650f8196cbd3d3368d /gcc | |
parent | 73f079427dd45f8731a9b064932cf8f7cea7d311 (diff) | |
download | gcc-d1132e0bef04e44f652a0ac5e0141022d2d77e0a.zip gcc-d1132e0bef04e44f652a0ac5e0141022d2d77e0a.tar.gz gcc-d1132e0bef04e44f652a0ac5e0141022d2d77e0a.tar.bz2 |
re PR c/12553 ([tree-ssa] ICE in gimplify_expr with volatiles)
PR c/12553
* tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
appropriately.
From-SVN: r72726
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/volatile1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/volatile1.c b/gcc/testsuite/gcc.dg/volatile1.c new file mode 100644 index 0000000..61a3979 --- /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; +} |