[gcc-in-cxx] Return reg_class from branch_target_register_class

Ian Lance Taylor iant@google.com
Sun Feb 1 05:44:00 GMT 2009


This patch changes the target hook branch_target_register_class to
return an enum reg_class rather than an int.  There are other hooks in
target.h which already return reg_class, and this one should as well.
This avoids an enum mismatch in bt-load.c.

This also corrects the prototype of the needs_block_p prototype, which
broke due to a bad merge.

Committed to gcc-in-cxx branch.

Ian


2009-01-31  Ian Lance Taylor  <iant@google.com>

	* target.h (struct sched): Correct needs_block_p prototype.
	(struct gcc_target): Change return type of
	branch_target_register_class to enum reg_class.
	* target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Change to
	default_branch_target_register_class.
	* targhooks.h (default_branch_target_register_class): Declare.
	* targhooks.c (default_branch_target_register_class): Define.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 2593 bytes
Desc: Return reg_class from branch_target_register_class
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090201/2f535439/attachment.bin>


More information about the Gcc-patches mailing list