re PR lto/89896 (-flto=4 is confused by presence of 'all.c' in a local directory...
authorRichard Biener <rguenther@suse.de>
Wed, 3 Apr 2019 08:46:00 +0000 (08:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Apr 2019 08:46:00 +0000 (08:46 +0000)
2019-04-03  Richard Biener  <rguenther@suse.de>

PR lto/89896
* lto-wrapper.c (run_gcc): Avoid implicit rules making
the all target phony.

From-SVN: r270112

gcc/ChangeLog
gcc/lto-wrapper.c

index cb503b1c46d4da8732d967d9f460719f3993042e..540c58a11c8ba2c4076411a11e8b1c459306f764 100644 (file)
@@ -1,3 +1,9 @@
+2019-04-03  Richard Biener  <rguenther@suse.de>
+
+       PR lto/89896
+       * lto-wrapper.c (run_gcc): Avoid implicit rules making
+       the all target phony.
+
 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
 
        PR target/89902
index 2cd69f24048923d2f79200e9043f27c41b722288..8c84aea37ae8948b9717f4139cd672deeac0093c 100644 (file)
@@ -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];