This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix 11535


On Tue, Jul 15, 2003 at 05:49:23PM -0700, H. J. Lu wrote:
> On ia64, return pointer is "rp", not "retaddr". This patch should fix
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11535
> 
> OK to install for mainline and 3.3?

It is incorrect, please read the comment above
RETURN_ADDRESS_POINTER_REGNUM.
The problem with your testcase is that you are storing
__builtin_return_address (0) into int instead of long.
If you change that, it will compile properly.
The problem likely is that ia64_expand_prologue
is just changing return_address_pointer_rtx and in your case
there was a SUBREG which made a different register from it.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]