]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:47:19 +0000 (08:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Apr 2019 08:47:19 +0000 (08:47 +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: r270114

gcc/ChangeLog
gcc/lto-wrapper.c

index 6a46877aa25a67d3f78faec19c6da34fec72040e..7aab465db1c9cef2ec6db8f1ae30ec6f26d7b143 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  Xiong Hu Luo <luoxhu@linux.ibm.com>
 
        Backport from trunk r250477.
index 2c81176913efdab4280aab1080cd07dfb7e016ca..5e5caa854083f0a123f9c8c85ac6bf6f29b5e27d 100644 (file)
@@ -1403,7 +1403,9 @@ cont:
          struct pex_obj *pex;
          char jobs[32];
 
-         fprintf (mstream, "all:");
+         fprintf (mstream,
+                  ".PHONY: all\n"
+                  "all:");
          for (i = 0; i < nr; ++i)
            fprintf (mstream, " \\\n\t%s", output_names[i]);
          fprintf (mstream, "\n");