public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libgo patch committed: Avoid error if WIFCONTINUED not defined
@ 2019-05-27  0:14 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2019-05-27  0:14 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

This libgo patch avoids an unused parameter error if WIFCONTINUED is
not defined on the system.  This fixes GCC PR 90614.  Bootstrapped and
ran Go tests on x86_64-pc-linux-gnu.  Committed to trunk and GCC 9
branch.

Ian

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 830 bytes --]

Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE	(revision 271322)
+++ gcc/go/gofrontend/MERGE	(working copy)
@@ -1,4 +1,4 @@
-54aacecc8167bfba8420cb7b245787ff80bde61b
+578c4fb6132801db8e9d11d741d2394e07c5a398
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/go/syscall/wait.c
===================================================================
--- libgo/go/syscall/wait.c	(revision 271182)
+++ libgo/go/syscall/wait.c	(working copy)
@@ -51,7 +51,7 @@ extern _Bool Continued (uint32_t *w)
   __asm__ (GOSYM_PREFIX "syscall.WaitStatus.Continued");
 
 _Bool
-Continued (uint32_t *w)
+Continued (uint32_t *w __attribute__ ((unused)))
 {
   return WIFCONTINUED (*w) != 0;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-27  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27  0:14 libgo patch committed: Avoid error if WIFCONTINUED not defined Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).