Commit 4582b849 by James E Wilson Committed by Jim Wilson

re PR target/8407 ([IA-64] ICE in simplify_gen_subreg, at simplify-rtx.c:2711…

re PR target/8407 ([IA-64] ICE in simplify_gen_subreg, at simplify-rtx.c:2711 with very simple code)

PR target/8407
* config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
gen_rtx_REG to create new reg with argument mode.

From-SVN: r74142
parent 85fa3bde
2003-12-01 James E Wilson <wilson@specifixinc.com>
PR target/8407
* config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
gen_rtx_REG to create new reg with argument mode.
2003-12-01 Steven Bosscher <stevenb@suse.de> 2003-12-01 Steven Bosscher <stevenb@suse.de>
* ggc.h (struct alloc_zone): Move forward declaration up. * ggc.h (struct alloc_zone): Move forward declaration up.
......
...@@ -3527,9 +3527,10 @@ ia64_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, ...@@ -3527,9 +3527,10 @@ ia64_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
? 1 : GET_MODE_SIZE (gr_mode) / UNITS_PER_WORD; ? 1 : GET_MODE_SIZE (gr_mode) / UNITS_PER_WORD;
} }
/* If we ended up using just one location, just return that one loc. */ /* If we ended up using just one location, just return that one loc, but
change the mode back to the argument mode. */
if (i == 1) if (i == 1)
return XEXP (loc[0], 0); return gen_rtx_REG (mode, REGNO (XEXP (loc[0], 0)));
else else
return gen_rtx_PARALLEL (mode, gen_rtvec_v (i, loc)); return gen_rtx_PARALLEL (mode, gen_rtvec_v (i, loc));
} }
......
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