[Bug middle-end/16948] [3.5 Regression] Many new testsuite failures on hppa64-hp-hpux11.11
jason at redhat dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 9 19:58:00 GMT 2004
------- Additional Comments From jason at redhat dot com 2004-08-09 19:58 -------
Subject: Re: [3.5 Regression] Many new testsuite
failures on hppa64-hp-hpux11.11
This patch seems to fix the bug; please give it a test and apply it if it
does the trick.
2004-08-09 Jason Merrill <jason@redhat.com>
* function.c (expand_function_start): Handle DECL_BY_REFERENCE on
the RESULT_DECL.
*** function.c.~1~ 2004-08-09 09:15:49.000000000 -0400
--- function.c 2004-08-09 15:54:51.000000000 -0400
*************** expand_function_start (tree subr)
*** 4005,4012 ****
}
if (value_address)
{
! rtx x = gen_rtx_MEM (DECL_MODE (DECL_RESULT (subr)), value_address);
! set_mem_attributes (x, DECL_RESULT (subr), 1);
SET_DECL_RTL (DECL_RESULT (subr), x);
}
}
--- 4005,4016 ----
}
if (value_address)
{
! rtx x = value_address;
! if (!DECL_BY_REFERENCE (DECL_RESULT (subr)))
! {
! x = gen_rtx_MEM (DECL_MODE (DECL_RESULT (subr)), x);
! set_mem_attributes (x, DECL_RESULT (subr), 1);
! }
SET_DECL_RTL (DECL_RESULT (subr), x);
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16948
More information about the Gcc-bugs
mailing list