http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48259
--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-03-26 08:24:27 UTC --- Created attachment 23775 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23775 Backtrace #1 Reproduced with i686-pc-linux-gnu-gcc-4.6.1 (GCC) 4.6.1 20110325 (prerelease) > Can you be more specific about what linker you use? GNU ld (GNU Binutils) 2.21.51.20110322 GNU gold (GNU Binutils 2.21.51.20110322) 1.11 > g++-4.6 -flto -O2 1.C 2.C 3.s -fno-use-linker-plugin It works. > g++-4.6 -flto -O2 1.C 2.C 3.s -flto-partition=none It does not work. Works with `-flto 1.C 2.C 3.s -flto-partition=1to1'.