When running the testsuite on mainline with -fpic or -fPIC I get these additional execute failures:
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution, -O2 FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution, -O3 -fomit-frame- pointer FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution, -O3 -fomit-frame- pointer -funroll-loops FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution, -O3 -fomit-frame- pointer -funroll-all-loops -finline-functions FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution, -O3 -g Looking at the -save-temps .s file, gcc is failing to optimize away any of the strlen calls, thus causing it to call abort in lib/strlen.c. -- Summary: Execute failure in gcc.c- torture/execute/builtins/strlen-3.c on i686-pc-linux-gnu with -fpic/-fPIC Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19231