PR middle-end/23492
* tree-inline.c (setup_one_parameter): If the init_stmt
is NULL, don't insert the statement.
2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23492
* gcc.c-torture/compile/zero-strct-5.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106270
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/23492
+ * tree-inline.c (setup_one_parameter): If the init_stmt
+ is NULL, don't insert the statement.
+
2005-10-30 Jan Hubicka <jh@suse.cz>
PR tree-optimization/24172
+2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/23492
+ * gcc.c-torture/compile/zero-strct-5.c: New test.
+
2005-10-31 Jerry DeLisle <jvdelisle@verizon.net>
PR libgfortran/24584
--- /dev/null
+/* Check that the inliner does not crash for this testcase.
+ gimple_expr can change the expr to NULL meaning that we
+ should not add any statement. */
+struct f {};
+struct g1 {struct f l;};
+
+static inline void g(struct f a, int i){}
+
+void h(void)
+{
+ struct g1 t;
+ g(t.l , 1);
+}
+
&& (!is_gimple_cast (rhs)
|| !is_gimple_val (TREE_OPERAND (rhs, 0))))
gimplify_stmt (&init_stmt);
- bsi_insert_after (&bsi, init_stmt, BSI_NEW_STMT);
+ if (init_stmt)
+ bsi_insert_after (&bsi, init_stmt, BSI_NEW_STMT);
}
}