[llvm-commits] [llvm-gcc-4.2] r92913 - /llvm-gcc-4.2/trunk/libiberty/strsignal.c
Duncan Sands
baldrick at free.fr
Thu Jan 7 07:12:12 PST 2010
Author: baldrick
Date: Thu Jan 7 09:12:12 2010
New Revision: 92913
URL: http://llvm.org/viewvc/llvm-project?rev=92913&view=rev
Log:
Get llvm-gcc closer to compiling out of the box on cygwin.
Problem pointed out by Mark Wezelenburg.
Modified:
llvm-gcc-4.2/trunk/libiberty/strsignal.c
Modified: llvm-gcc-4.2/trunk/libiberty/strsignal.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/libiberty/strsignal.c?rev=92913&r1=92912&r2=92913&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/libiberty/strsignal.c (original)
+++ llvm-gcc-4.2/trunk/libiberty/strsignal.c Thu Jan 7 09:12:12 2010
@@ -404,12 +404,11 @@
#ifndef HAVE_STRSIGNAL
-const char *
+char *
strsignal (int signo)
{
- const char *msg;
+ char *msg;
static char buf[32];
-
#ifndef HAVE_SYS_SIGLIST
if (signal_names == NULL)
@@ -428,12 +427,12 @@
{
/* 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];
+ msg = (char *) sys_siglist[signo];
}
return (msg);
More information about the llvm-commits
mailing list