public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib: sig2str: use __restrict
@ 2021-09-15 14:10 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2021-09-15 14:10 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6e64fccb5f181f632494f88208eea84c1bedf99f

commit 6e64fccb5f181f632494f88208eea84c1bedf99f
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Sep 15 01:04:14 2021 -0400

    newlib: sig2str: use __restrict
    
    This matches the header prototype style and most of newlib, and fixes
    building with older versions of gcc which only accept the __ form.

Diff:
---
 newlib/libc/signal/sig2str.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/signal/sig2str.c b/newlib/libc/signal/sig2str.c
index d3be1ba68..f4df913e2 100644
--- a/newlib/libc/signal/sig2str.c
+++ b/newlib/libc/signal/sig2str.c
@@ -226,7 +226,7 @@ sig2str(int signum, char *str)
 }
 
 int
-str2sig(const char *restrict str, int *restrict pnum)
+str2sig(const char *__restrict str, int *__restrict pnum)
 {
   unsigned long j = 0;
   char *endp;


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

only message in thread, other threads:[~2021-09-15 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 14:10 [newlib-cygwin] newlib: sig2str: use __restrict Michael Frysinger

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).