[Bug target/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon May 9 10:11:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #64 from Alan Modra <amodra at gmail dot com> 2011-05-09 09:52:44 UTC ---
Re: comment #56
> gcc generates a single function per CU
> that runs all the static constructors for that CU

Note that if you add __attribute__ (( constructor )) into the mix this is no
longer true.  See http://sourceware.org/bugzilla/show_bug.cgi?id=12730 for an
example.



More information about the Gcc-bugs mailing list