This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH 1: Re: BOOTSTRAP FAILURE: segementation fault in genattrtab
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH 1: Re: BOOTSTRAP FAILURE: segementation fault in genattrtab
- From: Jeffrey A Law <law at redhat dot com>
- Date: Wed, 29 Nov 2000 23:50:40 -0700
- cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: law at redhat dot com
In message <200011210645.BAA15807@hiauly1.hia.nrc.ca>you write:
> Is there a simple test to determine whether the frame pointer or other
> eliminable register has been eliminated?
I believe you can check FRAME_POINTER_NEEDED.
> When I wrote the patch, I assumed
> that no code would call gen_rtx_REG if it needed the frame_pointer_rtx
> after reload even if it hadn't been eliminated. If there was such code,
> the hack in the pa.md probably would have broken long ago. Isn't the above
> unnecessarily complicating things?'
Possibly not. But better safe than sorry IMHO.
> This gets even messier for the arg_pointer_rtx. On the pa 64 bit target,
> the arg pointer isn't eliminable or always invariant, so the register could
> be used for multiple purposes in a function.
Yes. But if you look at how the arg pointer is handled in that case you'll
find that it gets copied into a special pseudo.
jeff