This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Avoid one place of frontend calling into targetm
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, David Edelsohn <dje at watson dot ibm dot com>, Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 12 May 2007 11:24:20 +0200
- Subject: Re: [C++] Avoid one place of frontend calling into targetm
- References: <20070423001523.GJ23507@kam.mff.cuni.cz> <200705060208.l4628QQ30220@makai.watson.ibm.com> <20070508131432.GB10024@kam.mff.cuni.cz>
> The patch is trying to solve the problem by moving code 4) into
> callgraph so all frontends can use the infrastructure and moving the
> test for static_ctors_dtors out of C++ frontend (cgraph should abstract
> this completely now).
I'm in the process of converting the Ada front-end to the new scheme, but I
note that this will be a small step backwards because in ada/utils.c:
/* Arrays of functions called automatically at the beginning and
end of execution, on targets without .ctors/.dtors sections. */
static GTY(()) VEC(tree,gc) *static_ctors;
static GTY(()) VEC(tree,gc) *static_dtors;
and now in cgraphunit.c:
static GTY (()) tree static_ctors;
static GTY (()) tree static_dtors;
--
Eric Botcazou