This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
- From: Michael Matz <matz at suse dot de>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Joern Rennecke <joern dot rennecke at superh dot com>,Daniel Berlin <dberlin at dberlin dot org>,Herman ten Brugge <hermantenbrugge at home dot nl>,Dale Johannesen <dalej at apple dot com>, <gcc at gcc dot gnu dot org>
- Date: Thu, 15 May 2003 11:46:39 +0200 (CEST)
- Subject: Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
Hi,
On 14 May 2003, Alexandre Oliva wrote:
> But it may soon be. There are plans to support different calling
> conventions for different functions. Consider changing the
> clobber/save patterns of static functions never used outside the
> current translation unit by extending or limiting the set of registers
> it can clobber. It would be ideal if the new register allocator
> didn't make the assumption that calling-conventions are fixed for all
> functions.
It doesn't do that. It's already possible for each call to clobber
different registers, and this is handled correctly. Just that insane
notion of mode-dependent clobbering (which I really think is not necessary
at all) should ideally be removed alltogether, or at least it should not
depend on the call itself.
Ciao,
Michael.