From bb52a82affc49919ceee92cd2447c442d0c5fcf8 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 3 Apr 2019 08:46:00 +0000 Subject: [PATCH] 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/ChangeLog | 6 ++++++ gcc/lto-wrapper.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb503b1c46d..540c58a11c8 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 2cd69f24048..8c84aea37ae 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]; -- 2.30.2