aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2014-01-08 17:25:38 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2014-01-08 17:25:38 +0000
commit4c437f02c24d896b08267b39cd8c8216da3bce4e (patch)
tree499113f371f2643e026cc3b0aa0d39e87de14525 /gcc/cfgexpand.c
parent40d6b7535cdc6b2fbe02ba7dc3335a14bf343ea3 (diff)
downloadgcc-4c437f02c24d896b08267b39cd8c8216da3bce4e.zip
gcc-4c437f02c24d896b08267b39cd8c8216da3bce4e.tar.gz
gcc-4c437f02c24d896b08267b39cd8c8216da3bce4e.tar.bz2
re PR middle-end/57748 (ICE when expanding assignment to unaligned zero-sized array)
2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de> PR middle-end/57748 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter inner_reference_p. (expand_expr, expand_normal): Adjust. * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter inner_reference_p. Use inner_reference_p to expand inner references. (store_expr): Adjust. * cfgexpand.c (expand_call_stmt): Adjust. testsuite: 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de> PR middle-end/57748 * gcc.dg/torture/pr57748-3.c: New test. * gcc.dg/torture/pr57748-4.c: New test. From-SVN: r206437
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 2ba1cf4..0008be9 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2253,7 +2253,7 @@ expand_call_stmt (gimple stmt)
if (lhs)
expand_assignment (lhs, exp, false);
else
- expand_expr_real_1 (exp, const0_rtx, VOIDmode, EXPAND_NORMAL, NULL);
+ expand_expr (exp, const0_rtx, VOIDmode, EXPAND_NORMAL);
mark_transaction_restart_calls (stmt);
}