With HAVE_WORKING_FORK unset, I get an unused by set compile error.

That's fixed with the attached patch.

Tobias

PS: And if someone wonders what I am doing, see https://gcc.gnu.org/PR116535
lto/lto.cc: Fix build with not HAVE_WORKING_FORK

gcc/lto/ChangeLog:

	* lto.cc: Add missing HAVE_WORKING_FORK.

diff --git a/gcc/lto/lto.cc b/gcc/lto/lto.cc
index 58ff0c45f57..66d9f136ae1 100644
--- a/gcc/lto/lto.cc
+++ b/gcc/lto/lto.cc
@@ -62,8 +62,10 @@ along with GCC; see the file COPYING3.  If not see
 /* Number of parallel tasks to run.  */
 static int lto_parallelism;
 
+#ifdef HAVE_WORKING_FORK
 /* Number of active WPA streaming processes.  */
 static int nruns = 0;
+#endif
 
 /* GNU make's jobserver info.  */
 static jobserver_info *jinfo = NULL;

Reply via email to