------- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-10 12:29 ------- (In reply to comment #1) > I noticed that setting -fwhole-program on both compile and link stage > makes the weak problem go away. Expected?
No. -fwhole-program is ignored during compile stage if -flto or -fwhopr is specifed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44463