[rtems-crossrpms commit] New.
Ralf Corsepius
ralf at rtems.org
Fri Sep 7 05:29:25 UTC 2012
Module: rtems-crossrpms
Branch: master
Commit: 5b818c1dcb8e3f1b0c4f3f8f2398a557225a139b
Changeset: http://git.rtems.org/rtems-crossrpms/commit/?id=5b818c1dcb8e3f1b0c4f3f8f2398a557225a139b
Author: Ralf Corsépius <ralf.corsepius at rtems.org>
Date: Thu Aug 23 08:55:30 2012 +0200
New.
---
patches/cygwin-gcc-3.4.4-3.20120823.diff | 50 ++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/patches/cygwin-gcc-3.4.4-3.20120823.diff b/patches/cygwin-gcc-3.4.4-3.20120823.diff
new file mode 100644
index 0000000..46aea63
--- /dev/null
+++ b/patches/cygwin-gcc-3.4.4-3.20120823.diff
@@ -0,0 +1,50 @@
+diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c
+index a8a7d34..74ee39c 100644
+--- a/libiberty/strsignal.c
++++ b/libiberty/strsignal.c
+@@ -409,11 +409,11 @@ call to @code{strsignal}.
+
+ #ifndef HAVE_STRSIGNAL
+
+-const char *
++char *
+ strsignal (signo)
+ int signo;
+ {
+- const char *msg;
++ char *msg;
+ static char buf[32];
+
+ #ifndef HAVE_SYS_SIGLIST
+@@ -434,14 +434,16 @@ strsignal (signo)
+ {
+ /* In range, but no sys_siglist or no entry at this index. */
+ sprintf (buf, "Signal %d", signo);
+- msg = (const char *) buf;
++ msg = buf;
+ }
+ else
+ {
+- /* In range, and a valid message. Just return the message. */
+- msg = (const char *) sys_siglist[signo];
++ /* In range, and a valid message. Just return the message. We
++ can safely cast away const, since POSIX says the user must
++ not modify the result. */
++ msg = (char *) sys_siglist[signo];
+ }
+-
++
+ return (msg);
+ }
+
+@@ -558,8 +560,8 @@ followed by a newline.
+
+ void
+ psignal (signo, message)
+- unsigned signo;
+- char *message;
++ int signo;
++ const char *message;
+ {
+ if (signal_names == NULL)
+ {
More information about the vc
mailing list