[C++] Avoid one place of frontend calling into targetm

Jan Hubicka hubicka@ucw.cz
Sun May 6 10:05:00 GMT 2007


> 	The difference in assembly for init/copy3.C is an additional
> global constructor that calls the first global constructor
> 
> _Z41__static_initialization_and_destruction_0ii:
> ...
> 
> _GLOBAL__I_copies:
> ...
>         bl ._Z41__static_initialization_and_destruction_0ii
> 
> _GLOBAL__I_0_copies:
> ...
>         bl ._GLOBAL__I_copies

Looks like C++ frontend is keeping DECL_STATIC_CONSTRUCTOR on bit too
many functions, but I am not at all sure why.  Would be possible to have
a testcase + diff of what is going wrong so I can throw it into a cross?

Thanks,
Honza
> 
> David



More information about the Gcc-patches mailing list