------- Comment #14 from hubicka at gcc dot gnu dot org 2010-08-19 09:39 ------- Well, it might be easy to modify libstdc++ implementation so the static constructor compiles into single function call. Then we can teach GCC to optimize constructor containing only a call into entry in ctors table. Then we will get a lot of duplicate calls, but all at one place and we won't have the locality problem at startup.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44952