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]
Other format: [Raw text]

Re: [patch] global.c: Use VEC instead of VARRAY (Take 3)


Kazu Hirata wrote:
Hi,

Attached is a patch to use the updated VEC API instead of VARRAY.

Nathan, could you take a look at this patch?  I used VEC_safe_push as
suggested.  I am pretty sure you'll be happy with this one, but just
in case. :-)

Tested on i686-pc-linux-gnu. OK to apply?

Kazu Hirata

2005-04-28 Kazu Hirata <kazu@cs.umass.edu>

	* global.c (earlyclobber_regclass): Change the type to
	VEC(int,heap).
	(check_earlyclobber): Update uses of earlyclobber_regclass.
	(mark_reg_use_for_earlyclobber): Likewise.
	(calculate_local_reg_bb_info): Allocate and free
	earlyclobber_regclass using the VEC API.

looks good to me


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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