------- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-23 19:08 ------- This is because -fcompare-debug hooks into the wrong places in the driver for LTO. We throw away the output of the re-compile with -gtoggle even if we need it to process the -gtoggle link step (yes, we perform -fcompare-debug on the link step as well). We then run into PR44951.
One way to "fix" this bug is to restrict -fcompare-debug to pre-link time. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2010-07-22 14:10:01 |2010-07-23 19:08:49 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43071