This is the mail archive of the gcc-bugs@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]

[Bug c++/37949] static initialisation through pointer deferred until run time



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


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