projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f0794
)
re PR c/12553 ([tree-ssa] ICE in gimplify_expr with volatiles)
author
Jason Merrill
<jason@gcc.gnu.org>
Mon, 20 Oct 2003 22:02:17 +0000
(18:02 -0400)
committer
Jason 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]
patch
|
blob
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
+++ 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;
+}