This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37949] static initialisation through pointer deferred until run time
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2009 09:18:32 -0000
- Subject: [Bug c++/37949] static initialisation through pointer deferred until run time
- References: <bug-37949-8690@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-04-17 09:18 -------
This would be "inlining" of static-initialization-and-destruction functions
if they get optimized to return a constant initializer.
It's not easy to do as they cannot be easily removed late in the compilation.
Of course this particular simple case can be handled by folding.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37949