Commit 5ddb7ec6 authored by trippels's avatar trippels

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/branches/gcc-4_9-branch@216614 138bc75d-0d04-0410-961f-82ee72b054a4
parent 276afb60
2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
PR bootstrap/63632
* collect2.c (main): Filter out -fno-lto.
2014-10-22 Richard Biener <rguenther@suse.de>
Tobias Burnus <burnus@net-b.de>
......
......@@ -1341,6 +1341,12 @@ main (int argc, char **argv)
ld1--;
ld2--;
}
else if (strncmp (arg, "-fno-lto", 8) == 0)
{
/* Do not pass -fno-lto to the linker. */
ld1--;
ld2--;
}
#ifdef TARGET_AIX_VERSION
else
{
......
2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
PR bootstrap/63632
* g++.dg/torture/pr63632.C: New test.
2014-10-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/63563
......
// PR bootstrap/63632
// { dg-do link }
// { dg-options "-fno-lto" }
int main () {}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment