This is the mail archive of the gcc@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: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED


On May 15, 2003, Michael Matz <matz@suse.de> wrote:

> Sure.  But then I would explicitely add the necessary clobbers (of
> subregs) to the call instructions, explicitely stating what happens,
> namely that some register parts will be destroyed, instead of an
> abstraction like HARD_REGNO_CALL_PART_CLOBBERED.  At least for clobbers
> which can change per call.

Clobbering a subreg will still affects the entire register, if
BITS_PER_WORD is defined properly, so this is not an option.  Besides,
you don't want to pollute calls with clobbers, otherwise why would we
have CALL_USED_REGISTERS in the first place?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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