aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr33563.c
diff options
context:
space:
mode:
authorrguenth <>2007-09-26 14:31:50 +0000
committerrguenth <>2007-09-26 14:31:50 +0000
commit246e249eab903ce3976c5b8d3b58779f23dc0a76 (patch)
treecb57fd79265dda77cbf965d7bad38e0f3baff85e /gcc/testsuite/gcc.dg/torture/pr33563.c
parentb11c496d31532f0191559a6f9a430085037c9228 (diff)
2007-09-26 Richard Guenther <rguenther@suse.de>libbid-last-merge
PR tree-optimization/33563 * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ... (get_kill_of_stmt_lhs): ... this. Re-structure. Handle aggregate stores. (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of get_use_of_stmt_lhs. * gcc.dg/torture/pr33563.c: New testcase.
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr33563.c')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr33563.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr33563.c b/gcc/testsuite/gcc.dg/torture/pr33563.c
new file mode 100644
index 00000000000..47907db7ea6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr33563.c
@@ -0,0 +1,22 @@
+/* { dg-do run } */
+/* { dg-options "--param max-aliased-vops=0" } */
+
+struct T
+{
+ int a, b;
+} t, q;
+
+int main (void)
+{
+ struct T *p;
+
+ t.a = 1;
+ t.b = 2;
+ q = t;
+ t.a = 3;
+
+ if (q.a != 1)
+ __builtin_abort ();
+
+ return 0;
+}