public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43961]  New: [ARM thumb] "branch out of range" with thumb1_output_casesi
@ 2010-05-02 10:59 exceed at alae dot jp
  2010-05-10 16:03 ` [Bug target/43961] " ramana at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: exceed at alae dot jp @ 2010-05-02 10:59 UTC (permalink / raw)
  To: gcc-bugs

Environment:

$ arm-elf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-elf-gcc
COLLECT_LTO_WRAPPER=/cygdrive/c/usr/local/cross/libexec/gcc/arm-elf/4.5.0/lto-wrapper.exe
Target: arm-elf
Configured with: ../configure --prefix=/cygdrive/c/usr/local/cross
--target=arm-elf --with-float=soft --enable-languages=c,c++ --enable-lto
--with-libelf=/usr/local
Thread model: single
gcc version 4.5.0 (GCC)

Error:

$ arm-elf-gcc -c -Os -mthumb test.i
/cygdrive/c/Users/exceed/AppData/Local/Temp/cc6UR3zm.s: Assembler messages:
/cygdrive/c/Users/exceed/AppData/Local/Temp/cc6UR3zm.s:32816: Error: branch out
of range

Problem:

I think that the length of jump table does not contains a align code.
When jump table mode is SImode, ASM_OUTPUT_CASE_LABEL generates a align code.
But length does not contains this align code. (And ADDR_VEC_ALIGN is defined to
0)

Quick hack (for 4.5 branch):

Please see attached file.


-- 
           Summary: [ARM thumb] "branch out of range" with
                    thumb1_output_casesi
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: exceed at alae dot jp
  GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-elf


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


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

end of thread, other threads:[~2014-06-12 12:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43961-4@http.gcc.gnu.org/bugzilla/>
2013-01-03  0:00 ` [Bug target/43961] [ARM thumb] "branch out of range" with thumb1_output_casesi jsm28 at gcc dot gnu.org
2013-01-03  8:55 ` mikpe at it dot uu.se
2013-01-03 16:20 ` [Bug target/43961] [4.6/4.7/4.8 Regression] " jsm28 at gcc dot gnu.org
2013-01-07 15:19 ` rguenth at gcc dot gnu.org
2013-01-09 21:55 ` jsm28 at gcc dot gnu.org
2013-01-15 16:18 ` jsm28 at gcc dot gnu.org
2013-01-15 16:22 ` [Bug target/43961] [4.6/4.7 " jsm28 at gcc dot gnu.org
2013-04-12 15:15 ` [Bug target/43961] [4.7 " jakub at gcc dot gnu.org
2014-06-12 12:56 ` rguenth at gcc dot gnu.org
2010-05-02 10:59 [Bug c/43961] New: " exceed at alae dot jp
2010-05-10 16:03 ` [Bug target/43961] " ramana at gcc dot gnu dot org
2010-06-22 12:23 ` mikpe at it dot uu dot se
2010-06-22 12:28 ` mikpe at it dot uu dot se
2010-07-03  0:21 ` ramana 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).