diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-12-17 06:05:25 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-12-17 06:07:18 -0800 |
commit | b429f53eba87b780beaa93a811c47f1254bf5517 (patch) | |
tree | 84b70dad9b3eb5afe20c54d9efd5d0953a4404b4 /c++tools | |
parent | 9f9dbc8e09cf48406aa24b6c78735f1a7912cc4e (diff) | |
download | gcc-b429f53eba87b780beaa93a811c47f1254bf5517.zip gcc-b429f53eba87b780beaa93a811c47f1254bf5517.tar.gz gcc-b429f53eba87b780beaa93a811c47f1254bf5517.tar.bz2 |
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.
Diffstat (limited to 'c++tools')
-rw-r--r-- | c++tools/server.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++tools/server.cc b/c++tools/server.cc index 6457dc5..8514ef6 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. */ |