This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15155] New: [3.4 regression][sh-linux] displacement overflows 12-bit field
- From: "sugioka at itonet dot co dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2004 20:40:39 -0000
- Subject: [Bug target/15155] New: [3.4 regression][sh-linux] displacement overflows 12-bit field
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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