diff mbox series

Fix PR89896, bogus Makefile generated by lto-wrapper

Message ID alpine.LSU.2.20.1904011424100.27537@zhemvz.fhfr.qr
State New
Headers show
Series Fix PR89896, bogus Makefile generated by lto-wrapper | expand

Commit Message

Richard Biener April 1, 2019, 12:31 p.m. UTC
Currently confused by both all or all.c in the local directory.

Bootstrap / regtest running on x86_64-unknown-linux-gnu.

Richard.

2019-04-01  Richard Biener  <rguenther@suse.de>

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

Patch

Index: gcc/lto-wrapper.c
===================================================================
--- gcc/lto-wrapper.c	(revision 270053)
+++ gcc/lto-wrapper.c	(working copy)
@@ -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];