[Bug target/13926] New: GCC generates jumps that are too large to fit in word displacement field
lucier at math dot purdue dot edu
gcc-bugzilla@gcc.gnu.org
Fri Jan 30 04:07:00 GMT 2004
This is reported against 3.3.1 since that's what I have readily available now,
but I believe it also occurs in 3.4 and mainline.
With the following file:
http://www.math.purdue.edu/~lucier/bugzilla/5/_meroon.i.gz
while trying to instrument it using gcov, I get the following error:
banach-2% gcc -I/export/mdd0/users/lucier/local/gambit/include -m64 -fPIC -O0 -f
no-math-errno -fno-trapping-math -mtune=ultrasparc -c -D___DYNAMIC -D___SINGLE_H
OST -D___OPTIMIZE_SPACE -ftest-coverage -fprofile-arcs -save-temps _meroon.c
/usr/ccs/bin/as: "_meroon.s", line 450662: error: word displacement will not fit
in 19 bits
/usr/ccs/bin/as: "_meroon.s", line 35282: error: word displacement will not fit
in 19 bits
/usr/ccs/bin/as: "_meroon.s", line 35341: error: word displacement will not fit
in 19 bits
/usr/ccs/bin/as: "_meroon.s", line 35391: error: word displacement will not fit
in 19 bits
/usr/ccs/bin/as: "_meroon.s", line 35416: error: word displacement will not fit
in 19 bits
/usr/ccs/bin/as: "_meroon.s", line 35466: error: word displacement will not fit
in 19 bits
<repeated a few thousand times>
Basically, gcc on sparc64 generates predicated jumps over 2MB instead of using
an indirect jump.
(Perhaps this is the largest function ever occuring in a bugzilla report ;-)
Brad
--
Summary: GCC generates jumps that are too large to fit in word
displacement field
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lucier at math dot purdue dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13926
More information about the Gcc-bugs
mailing list