Fix bootstrap/PR63632
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Fri, 24 Oct 2014 06:39:24 +0000 (06:39 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Fri, 24 Oct 2014 06:39:24 +0000 (06:39 +0000)
commitfa608e77c23322260187ad098859ea1b2ba3b322
tree2c02a7576b870f559cb78d1d963fc61ae2709e65
parentf1c859ee84ad2d44fa9fc1867b183c47ee1d0489
Fix bootstrap/PR63632

r216566 (r216568 for 4.9 branch) added %{fno-lto} to LINK_COMMAND_SPEC.
However the linker doesn't understand -fno-lto and errors out.
This causes an LTO/PGO bootstrap failure, because -fno-lto is used
during STAGEprofile.
Fixed by filtering out -fno-lto in collect2.c.

From-SVN: r216613
gcc/ChangeLog
gcc/collect2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr63632.C [new file with mode: 0644]