Commit 508dabda by Ian Lance Taylor Committed by Zack Weinberg

re PR middle-end/32441 (ICE in expand_expr_real_1, at expr.c:7109)

2007-07-06  Ian Lance Taylor  <iant@google.com>
            Zack Weinberg  <zackw@panix.com>

	PR middle-end/32441
	* builtins.c (std_expand_builtin_va_start): Don't use make_tree.

Co-Authored-By: Zack Weinberg <zackw@panix.com>

From-SVN: r126424
parent e0ff69ab
2007-07-06 Ian Lance Taylor <iant@google.com>
Zack Weinberg <zackw@panix.com>
PR middle-end/32441
* builtins.c (std_expand_builtin_va_start): Don't use make_tree.
2007-07-06 Richard Sandiford <richard@codesourcery.com>
* config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
......
......@@ -4649,14 +4649,8 @@ std_build_builtin_va_list (void)
void
std_expand_builtin_va_start (tree valist, rtx nextarg)
{
tree t;
t = make_tree (sizetype, nextarg);
t = fold_convert (ptr_type_node, t);
t = build2 (MODIFY_EXPR, TREE_TYPE (valist), valist, t);
TREE_SIDE_EFFECTS (t) = 1;
expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
rtx va_r = expand_expr (valist, NULL_RTX, VOIDmode, EXPAND_WRITE);
convert_move (va_r, nextarg, 0);
}
/* Expand EXP, a call to __builtin_va_start. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment