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]

Re: regrename doesn't take HARD_REGNO_CALL_PART_CLOBBERED into account


On Mar 19, 2001, Bernd Schmidt <bernds@cambridge.redhat.com> wrote:

> I'm really confused about this macro.  How is the information it gives us
> different from CALL_USED_REGISTERS?

A register is part-clobbered if a value in the given mode isn't
guaranteed to be preserved across function calls, but values in
(typically narrower) modes are.  Setting CALL_USED_REGISTERS to 1 for
a register should be equivalent to arranging for
HARD_REGNO_CALL_PART_CLOBBERED to return 1 for all modes.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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