Commit 8d04e6db by Mark Mitchell Committed by Andreas Schwab

re PR c++/11326 (C++ IA64 ABI: 3.1.4: sometimes pointer to temporary return…

re PR c++/11326 (C++ IA64 ABI: 3.1.4: sometimes pointer to temporary return value is implicit first parameter preceding "this")

	PR c++/11326
	* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
	fntype.

From-SVN: r78028
parent e978d62e
2004-02-18 Mark Mitchell <mark@codesourcery.com>
PR c++/11326
* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
fntype.
2004-02-18 Paul Brook <paul@codesourcery.com>
* rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
......
......@@ -8978,7 +8978,7 @@ static rtx
ia64_struct_value_rtx (tree fntype,
int incoming ATTRIBUTE_UNUSED)
{
if (ia64_struct_retval_addr_is_first_parm_p (fntype))
if (fntype && ia64_struct_retval_addr_is_first_parm_p (fntype))
return NULL_RTX;
return gen_rtx_REG (Pmode, GR_REG (8));
}
......
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