On 09/27/2012 07:44 PM, Vladimir Makarov wrote:
On 09/27/2012 08:07 PM, Joseph S. Myers wrote:
On Thu, 27 Sep 2012, Vladimir Makarov wrote:

Hook spill_class returns a value of enum reg_class which is defined in
target-depend include file.
That's what reg_class_t is for: avoiding enum reg_class in hook
interfaces.

Ok.  Thanks for pointing this out.

Here is the modified patch.

2012-09-27  Vladimir Makarov  <vmaka...@redhat.com>

     * targhooks.h (default_lra_p): Declare.
     (default_register_bank): Ditto.
     (default_different_addr_displacement_p): Ditto.
     * targhooks.c (default_lra_p): New function.
     (default_register_bank): Ditto.
     (default_different_addr_displacement_p): Ditto.
     * target.def (lra_p): New hook.
     (register_bank): Ditto.
     (different_addr_displacement_p): Ditto.
     (spill_class, spill_class_mode): New hooks.
     * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_BANK,
     TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, TARGET_SPILL_CLASS, and
     TARGET_SPILL_CLASS_MODE.
     * doc/tm.texi: Update.

The change also requires some modification in the 9th patch. The
ChangeLog for the patch should be the same as before.
This looks fine to me.

jeff

Reply via email to