2010-03-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43317
* ipa-struct-reorg.c (create_new_general_access): Update stmt.
* gcc.dg/pr43317.c: New testcase.
From-SVN: r157457
+2010-03-15 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/43317
+ * ipa-struct-reorg.c (create_new_general_access): Update stmt.
+
2010-03-15 Martin Jambor <mjambor@suse.cz>
- PR tree/optimization/43141
+ PR tree-optimization/43141
* tree-sra.c (create_abstract_origin): New function.
(modify_function): Call create_abstract_origin.
for now just reset all debug stmts referencing objects that have
been peeled. */
gimple_debug_bind_reset_value (stmt);
+ update_stmt (stmt);
break;
default:
+2010-03-15 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/43317
+ * gcc.dg/pr43317.c: New testcase.
+
2010-03-14 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/abi/packed1.C: Expect warning on the alpha*-*-*.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -fipa-struct-reorg -fwhole-program -fipa-type-escape -g" } */
+
+extern void *malloc(__SIZE_TYPE__);
+
+struct S {
+ int i;
+};
+
+int main(int argc, char *argv[])
+{
+ int i = argc;
+ struct S *p = malloc(sizeof (struct S));
+ return p[i].i;
+}