Commit d4afac5b by Josef Zlomek Committed by Josef Zlomek

emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of PARALLEL is NULL.

	* emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
	PARALLEL is NULL.

From-SVN: r77811
parent 19b17484
2004-02-14 Josef Zlomek <zlomekj@suse.cz>
* emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
PARALLEL is NULL.
2004-02-14 Per Bothner <per@bothner.com>
* fix-header.c (line_table): Move local variable in main to global.
......
......@@ -852,8 +852,16 @@ set_decl_incoming_rtl (tree t, rtx x)
}
if (GET_CODE (x) == PARALLEL)
{
int i;
for (i = 0; i < XVECLEN (x, 0); i++)
int i, start;
/* Check for a NULL entry, used to indicate that the parameter goes
both on the stack and in registers. */
if (XEXP (XVECEXP (x, 0, 0), 0))
start = 0;
else
start = 1;
for (i = start; i < XVECLEN (x, 0); i++)
{
rtx y = XVECEXP (x, 0, i);
if (REG_P (XEXP (y, 0)))
......
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