public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/36881]  New: [4.4 Regression] Creating runtime relocations for code which does not need it
@ 2008-07-20 18:42 pinskia at gcc dot gnu dot org
  2008-07-20 18:43 ` [Bug tree-optimization/36881] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-07-20 18:42 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-10-15  6:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 18:42 [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
2008-07-20 18:43 ` [Bug tree-optimization/36881] " pinskia at gcc dot gnu dot org
2008-08-08 22:49 ` mmitchel at gcc dot gnu dot org
2008-08-08 22:54 ` pinskia at gcc dot gnu dot org
2008-08-08 23:46 ` mmitchel at gcc dot gnu dot org
2008-08-09 18:07 ` rguenth at gcc dot gnu dot org
2008-09-04 10:53 ` hubicka at gcc dot gnu dot org
2008-09-11 11:44 ` jamborm at gcc dot gnu dot org
2008-09-15  9:23 ` jakub at gcc dot gnu dot org
2008-10-15  6:46 ` jakub at gcc dot gnu dot org
2008-10-15  6:50 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).