From: Nathan Sidwell Date: Thu, 17 Dec 2020 14:05:25 +0000 (-0800) Subject: bootstrap: Don't use strsignal [PR 98300] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b429f53eba87b780beaa93a811c47f1254bf5517;p=gcc.git 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 --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. */