public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Unconditionally declare strsignal
@ 2021-10-08 19:46 Christian Biesinger
  2021-10-09  1:15 ` Mike Frysinger
  2021-10-26 19:35 ` Christian Biesinger
  0 siblings, 2 replies; 7+ messages in thread
From: Christian Biesinger @ 2021-10-08 19:46 UTC (permalink / raw)
  To: newlib; +Cc: vapier, Christian Biesinger

Currently, newlib does not declare strsignal if DEFS_H is defined,
ostensibly to work around a gdb bug. However, gdb itself compiles
even with this ifndef removed, and this makes sim (another part of
gdb) fail to compile.

Since it is not clear exactly what issue this was working around,
this patch just removes that ifndef.
---
 newlib/libc/include/string.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 60e837bc0..ec74b10d5 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -130,9 +130,7 @@ char	*strlwr (char *);
 char	*strupr (char *);
 #endif
 
-#ifndef DEFS_H	/* Kludge to work around problem compiling in gdb */
 char	*strsignal (int __signo);
-#endif
 
 #ifdef __CYGWIN__
 int	strtosigno (const char *__name);
-- 
2.33.0.882.g93a45727a2-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-27 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 19:46 [PATCH] Unconditionally declare strsignal Christian Biesinger
2021-10-09  1:15 ` Mike Frysinger
2021-10-26 19:35 ` Christian Biesinger
2021-10-26 19:47   ` Corinna Vinschen
2021-10-27 16:41     ` [PATCH v2] " Christian Biesinger
2021-10-27 18:07       ` Corinna Vinschen
2021-10-27 16:42     ` [PATCH] " Christian Biesinger

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