From bb52a82affc49919ceee92cd2447c442d0c5fcf8 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 3 Apr 2019 08:46:00 +0000 Subject: 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 --- gcc/lto-wrapper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/lto-wrapper.c') diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 2cd69f2..8c84aea 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]; -- cgit v1.1