updated on Fri Jan 6 04:00:21 UTC 2012
[aur-mirror.git] / llvm-etoile / gcc-4.4.patch
blobf4f7919fa2f478e6d1c89292c071a3bc2555764b
1 diff -upr llvm-2.5.orig/lib/System/Unix/Signals.inc llvm-2.5/lib/System/Unix/Signals.inc
2 --- llvm-2.5.orig/lib/System/Unix/Signals.inc 2008-12-06 01:39:24.000000000 +0200
3 +++ llvm-2.5/lib/System/Unix/Signals.inc 2009-07-06 02:57:12.000000000 +0300
4 @@ -78,7 +78,7 @@ static void PrintStackTrace() {
5 for (int i = 0; i < depth; ++i) {
6 Dl_info dlinfo;
7 dladdr(StackTrace[i], &dlinfo);
8 - char* name = strrchr(dlinfo.dli_fname, '/');
9 + const char* name = strrchr(dlinfo.dli_fname, '/');
11 int nwidth;
12 if (name == NULL) nwidth = strlen(dlinfo.dli_fname);
13 @@ -93,7 +93,7 @@ static void PrintStackTrace() {
15 fprintf(stderr, "%-3d", i);
17 - char* name = strrchr(dlinfo.dli_fname, '/');
18 + const char* name = strrchr(dlinfo.dli_fname, '/');
19 if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
20 else fprintf(stderr, " %-*s", width, name+1);