[Bug tree-optimization/36881] New: [4.4 Regression] Creating runtime relocations for code which does not need it

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 20 18:42:00 GMT 2008


Compile gcc.c-torture/execute/20080719-1.c with -O2 -fPIC and you will get:
gcc/gcc/testsuite/gcc.c-torture/execute/20080719-1.c: In function ‘xxx’:
gcc/gcc/testsuite/gcc.c-torture/execute/20080719-1.c:65: error: creating
run-time relocation for ‘cfb_tab8_be’
gcc/gcc/testsuite/gcc.c-torture/execute/20080719-1.c:65: error: creating
run-time relocation for ‘cfb_tab32’
gcc/gcc/testsuite/gcc.c-torture/execute/20080719-1.c:65: error: creating
run-time relocation for ‘cfb_tab32’

This is because of the switch conversion pass which should be disabled for
-fPIC on spu-elf.  The runtime loader for spu does not currently support
runtime relocations.

If we compile with -O1 -fPIC, these runtime relocations are not created.


-- 
           Summary: [4.4 Regression] Creating runtime relocations for code
                    which does not need it
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: spu-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36881



More information about the Gcc-bugs mailing list