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]

Re: [C++ PATCH] Optimize__static_initialization_and_destruction_*



It's true that the code stinks, but it doesn't matter much -- nobody's
inner loop is static initialization.

Still, what you're doing shows the power of working with trees; we can
easily do the optimization you want.

However, creating new global variables is bad.  Gradually, we should
be working to eliminate them.  Please make a little struct, and pass
it around.

Once you do that, I'll review the patch again.

Thanks!

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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