[Bug optimization/11884] Bad address passed to function with > 8 arguments

danglin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 27 21:30:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list