http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54761
--- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2012-10-01 08:48:24 UTC --- FWIW, btest from libbacktrace already fails with: test1: [0]: got C expected test.c test1: [0]: got 197864 expected 303 test1: [0]: got expected f3 FAIL: backtrace_full noinline test2: [0]: got expected test.c test2: [0]: got 213088 expected 355 test2: [0]: got ELF expected f13 FAIL: backtrace_full inline Segmentation fault where: Program received signal SIGSEGV, Segmentation fault. check () at ../../../gcc-svn/trunk/libbacktrace/btest.c:116 116 for (s = p; *s != '\0'; ++s) (gdb) bt #0 check () at ../../../gcc-svn/trunk/libbacktrace/btest.c:116 #1 0x0000000120001e88 in f23.constprop.4 () at ../../../gcc-svn/trunk/libbacktrace/btest.c:448 #2 0x0000000120002148 in f22.constprop.3 () at ../../../gcc-svn/trunk/libbacktrace/btest.c:390 #3 0x0000000120002178 in test3 () at ../../../gcc-svn/trunk/libbacktrace/btest.c:384 #4 0x0000000120001208 in main () at ../../../gcc-svn/trunk/libbacktrace/btest.c:623 (gdb) li 111 { 112 const char *last; 113 const char *s; 114 115 last = NULL; 116 for (s = p; *s != '\0'; ++s) 117 { 118 if (IS_DIR_SEPARATOR (*s)) 119 last = s + 1; 120 }