This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36881] New: [4.4 Regression] Creating runtime relocations for code which does not need it
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2008 18:41:42 -0000
- Subject: [Bug tree-optimization/36881] New: [4.4 Regression] Creating runtime relocations for code which does not need it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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