This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix 11535
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Jul 2003 21:15:16 -0400
- Subject: Re: PATCH: Fix 11535
- References: <20030716004923.GA26526@lucon.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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