This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11884] Bad address passed to function with > 8 arguments
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2004 21:30:25 -0000
- Subject: [Bug optimization/11884] Bad address passed to function with > 8 arguments
- References: <20030811192658.11884.sdowning@fame.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From danglin at gcc dot gnu dot org 2004-01-27 21:30 -------
On hppa64, the argument pointer is not a fixed register and the first
call clobbers it. I believe that a copy of the argument pointer rtx is
created by function.c, but it appears that the addressof pass is not
using the copy but arg_pointer_rtx directly for the address calculation
used in the call to gets_ptr.
It appears you can work around the problem by assigning &arg9 to a
variable before the first call.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-07 17:12:56 |2004-01-27 21:30:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11884