New target macro HARD_REGNO_CALL_PART_CLOBBERED

Jeffrey A Law law@cygnus.com
Wed Sep 30 18:16:00 GMT 1998


  In message < 13840.43544.900286.239959@ongaonga.elec.canterbury.ac.nz >you write:
  > 
  > This target macro is used by the register allocator to prevent
  > allocation of certain modes in registers which may be clobbered by a
  > call.  Currently, GCC assumes if a hard register is not a
  > call_used_register, then it is fully preserved across a call.  This is
  > not true with the ABI used by the C4x target, where some registers are
  > only partially preserved across a call.
  > 
  > This patch has no effect on existing targets.
  > 
  > Sun Sep 27 10:25:18 1998  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
  > 
  > 	* regs.h (HARD_REGNO_CALL_PART_CLOBBERED):  New macro.
  > 	* local-alloc.c (find_free_reg): Use it.
  > 	* global.c (find_reg): Likewise.
Thanks.  Installed.
jeff



More information about the Gcc-patches mailing list