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: [C++] Avoid one place of frontend calling into targetm


> > 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;

I've just moved the code from C frontend out.  If you can just cut&paste
the vector bits into cgraph, it would be nice.

Thanks,
Honza
> 
> -- 
> Eric Botcazou


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