http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-03 13:22:23 UTC --- I have no idea how this can be made to work with -fwhole-program, but other people know better.