]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR lto/60571 (FTBFS on hurd-i386)
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Mar 2014 07:18:46 +0000 (08:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Mar 2014 07:18:46 +0000 (08:18 +0100)
PR lto/60571
* lto.c (wait_for_child): Define WCONTINUED if not defined to 0.
Fix formatting.

From-SVN: r208675

gcc/lto/ChangeLog
gcc/lto/lto.c

index 11897cd99db0ca2b1ca9a73bfd0a7a7cc3b26aeb..b8c2067370402e1892e8784457de6b371f577120 100644 (file)
@@ -1,3 +1,9 @@
+2014-03-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR lto/60571
+       * lto.c (wait_for_child): Define WCONTINUED if not defined to 0.
+       Fix formatting.
+
 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/60535
index 91b43d9455bd09afd872e61a0efe92246916c92c..9ebcdce3a45254a4ed1057690b0d23e0e3c186b8 100644 (file)
@@ -2476,7 +2476,10 @@ wait_for_child ()
   int status;
   do
     {
-      int w = waitpid(0, &status, WUNTRACED | WCONTINUED);
+#ifndef WCONTINUED
+#define WCONTINUED 0
+#endif
+      int w = waitpid (0, &status, WUNTRACED | WCONTINUED);
       if (w == -1)
        fatal_error ("waitpid failed");
 
@@ -2485,7 +2488,7 @@ wait_for_child ()
       else if (WIFSIGNALED (status))
        fatal_error ("streaming subprocess was killed by signal");
     }
-  while (!WIFEXITED(status) && !WIFSIGNALED(status));
+  while (!WIFEXITED (status) && !WIFSIGNALED (status));
 }
 #endif