When running the testsuite on 3.3, 3.4 and mainline with -fpic or -fPIC I get the following additional error at -O0:
FAIL: gcc.c-torture/compile/20000804-1.c, -O0 3.4 additionally gets an error at -O1 as seen in these results: http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00029.html http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00085.html http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00084.html The error message from the logfile is: gcc.c-torture/compile/20000804-1.c:12: error: can't find a register in class `GENERAL_REGS' while reloading `asm' Is there something to fix in the compiler, the testcase, or should the test be bypassed when using -fpic/-fPIC ? -- Summary: Error in gcc.c-torture/compile/20000804-1.c when using - fpic/-fPIC on i686-pc-linux-gnu Product: gcc Version: 3.3.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: inline-asm 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=19227