From: Richard Biener Date: Wed, 3 Apr 2019 08:46:00 +0000 (+0000) Subject: re PR lto/89896 (-flto=4 is confused by presence of 'all.c' in a local directory... X-Git-Tag: basepoints/gcc-10~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb52a82affc49919ceee92cd2447c442d0c5fcf8;p=thirdparty%2Fgcc.git re PR lto/89896 (-flto=4 is confused by presence of 'all.c' in a local directory. -flto=1 is not.) 2019-04-03 Richard Biener PR lto/89896 * lto-wrapper.c (run_gcc): Avoid implicit rules making the all target phony. From-SVN: r270112 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb503b1c46d4..540c58a11c8b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-04-03 Richard Biener + + PR lto/89896 + * lto-wrapper.c (run_gcc): Avoid implicit rules making + the all target phony. + 2019-04-02 Uroš Bizjak PR target/89902 diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 2cd69f240489..8c84aea37ae8 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -1665,7 +1665,9 @@ cont: struct pex_obj *pex; char jobs[32]; - fprintf (mstream, "all:"); + fprintf (mstream, + ".PHONY: all\n" + "all:"); for (i = 0; i < nr; ++i) { int j = ltrans_priorities[i*2 + 1];