public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6230] bootstrap: Don't use strsignal [PR 98300]
@ 2020-12-17 14:07 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-12-17 14:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b429f53eba87b780beaa93a811c47f1254bf5517

commit r11-6230-gb429f53eba87b780beaa93a811c47f1254bf5517
Author: Nathan Sidwell <nathan@acm.org>
Date:   Thu Dec 17 06:05:25 2020 -0800

    bootstrap: Don't use strsignal [PR 98300]
    
    Sadly strsignal is nonportable, so signal numbers it is then.
    
            c++tools/
            * server.cc (crash_signal): Don't use strsignal.

Diff:
---
 c++tools/server.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c++tools/server.cc b/c++tools/server.cc
index 6457dc5b878..8514ef6293b 100644
--- a/c++tools/server.cc
+++ b/c++tools/server.cc
@@ -213,7 +213,8 @@ static void ATTRIBUTE_NORETURN ATTRIBUTE_COLD
 crash_signal (int sig)
 {
   signal (sig, SIG_DFL);
-  internal_error ("signal %s", strsignal (sig));
+  // strsignal is not portable :(
+  internal_error ("signal %d", sig);
 }
 
 /* A fatal error of some kind.  */


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

only message in thread, other threads:[~2020-12-17 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 14:07 [gcc r11-6230] bootstrap: Don't use strsignal [PR 98300] Nathan Sidwell

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