From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32220 invoked by alias); 30 Jan 2004 04:07:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32173 invoked by uid 48); 30 Jan 2004 04:07:11 -0000 Date: Fri, 30 Jan 2004 04:07:00 -0000 From: "lucier at math dot purdue dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20040130040702.13926.lucier@math.purdue.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/13926] New: GCC generates jumps that are too large to fit in word displacement field X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03826.txt.bz2 List-Id: 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 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