projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9dbc8
)
bootstrap: Don't use strsignal [PR 98300]
author
Nathan Sidwell
<nathan@acm.org>
Thu, 17 Dec 2020 14:05:25 +0000
(06:05 -0800)
committer
Nathan Sidwell
<nathan@acm.org>
Thu, 17 Dec 2020 14:07:18 +0000
(06:07 -0800)
Sadly strsignal is nonportable, so signal numbers it is then.
c++tools/
* server.cc (crash_signal): Don't use strsignal.
c++tools/server.cc
patch
|
blob
|
history
diff --git
a/c++tools/server.cc
b/c++tools/server.cc
index 6457dc5b878629c5dfff61ea910d94b5497d2537..8514ef6293be5a3149f94f5d40bdde81ab040ffb 100644
(file)
--- 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. */