[Bug target/15155] New: [3.4 regression][sh-linux] displacement overflows 12-bit field

sugioka at itonet dot co dot jp gcc-bugzilla@gcc.gnu.org
Mon Apr 26 22:12:00 GMT 2004


gcc-3.4.0 for sh-linux target does not correctly compile binutils-2.15.90.0.3
with -O2 -fPIC options.

It fails as follows.
$ sh-linux-gcc -O2 -fPIC -c elf32-sh.i
/tmp/cch6VQkB.s: Assembler messages:
/tmp/cch6VQkB.s:14513: Error: displacement to defined symbol .L2078 overflows 
12-bit field
/tmp/cch6VQkB.s:14536: Error: displacement to defined symbol .L2017 overflows 
12-bit field
/tmp/cch6VQkB.s:16807: Error: displacement to defined symbol .L2018 overflows 
12-bit field

Adding -fno-reorder-blocks fixes this.
It correctly compiles with gcc-3.2.3, so this is a regression.

-- 
           Summary: [3.4 regression][sh-linux] displacement overflows 12-bit
                    field
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sugioka at itonet dot co dot jp
                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: sh-unknown-linux-gnu


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



More information about the Gcc-bugs mailing list