Fix bootstrap/PR63632
commit28ed1b8973e8bf29b50a83601e3933b093cba0fb
authortrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2014 06:39:24 +0000 (24 06:39 +0000)
committertrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2014 06:39:24 +0000 (24 06:39 +0000)
tree2c02a7576b870f559cb78d1d963fc61ae2709e65
parent042fd163f4a6c259b5c9cdde0327a9e334f54b7d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216613 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/collect2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr63632.C [new file with mode: 0644]