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: [RFA:] Fix PR target/{18329,18330}, incorrect deletion of output-reload


On Wed, Jan 12, 2005 at 06:40:33AM -0500, Hans-Peter Nilsson wrote:
> Is it because ports usually have call-saved-regs
> last in REG_ALLOC_ORDER?

Yes.

> > If it is call saved, then this could be valid in the non-exception
> > case.
> 
> Do you refer to validity of the patch, or the events before
> execution arrives at the patch site?

The events before.  In that inheriting the reload at all,
never mind deleting the output reload, is valid.

> Anyway, handling non-call-exceptions would be a separate case
> (not triggered by any existing test-case), so would call for a
> separate patch.

No.  It's the *same* case.

> This would lead to pessimization (until there's a sane register
> allocator with equally sane reload), for targets with unfew
> registers but only for rare cases, assuming nonlocal-gotos are
> rare everywhere (Ada too?)

No.  It would lead to *correctness*.


r~


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