This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Hookize ALLOCATE_INITIAL_VALUE
- From: Richard Henderson <rth at redhat dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org, joern dot rennecke at st dot com, aoliva at redhat dot com
- Date: Tue, 28 Jun 2005 12:36:59 -0700
- Subject: Re: [patch] Hookize ALLOCATE_INITIAL_VALUE
- References: <20050626.091527.112603784.kkojima@rr.iij4u.or.jp>
On Sun, Jun 26, 2005 at 09:15:27AM +0900, Kaz Kojima wrote:
> * target.h (gcc_target): New field allocate_initial_value.
> * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
> (TARGET_INITIALIZER): Include it.
> * integrate.c (allocate_initial_values): Use
> targetm.allocate_initial_value.
> * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
> * config/sh/sh.c (sh_pr_n_sets): Make it static.
> (sh_allocate_initila_value): New function.
> (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
> * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
> * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
> update from ALLOCATE_INITIAL_VALUE.
Ok. Don't forget to poison the old macro.
r~