2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/26179
* g++.dg/opt/pr26179.C: New test.
2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/26179
* tree-ssa-pre.c (create_component_ref_by_pieces):
Handle RETURN_DECL like VAR_DECL.
From-SVN: r110801
+2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR tree-opt/26179
+ * tree-ssa-pre.c (create_component_ref_by_pieces):
+ Handle RETURN_DECL like VAR_DECL.
+
2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/26134
+2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR tree-opt/26179
+ * g++.dg/opt/pr26179.C: New test.
+
2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/26134
--- /dev/null
+/* The problem here is that Load PRE on the tree level
+ forgot to handle RETURN_DECL which causes us to ICE. */
+
+// { dg-do compile }
+// { dg-options "-O2" }
+
+struct a
+{
+ int i;
+};
+void h(struct a&);
+void l(void);
+
+struct a g(void)
+{
+ struct a fl;
+ h(fl);
+ if (fl.i)
+ l();
+ fl.i+=2;
+ return fl;
+}
break;
case VAR_DECL:
case PARM_DECL:
+ case RESULT_DECL:
case SSA_NAME:
return genop;
default: