linux-mips
[Top] [All Lists]

Re: GCC generating wrong assembly code?

To: Dennis Newbold <dennisn@pe.net>
Subject: Re: GCC generating wrong assembly code?
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sat, 26 Oct 2002 05:18:44 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <Pine.GSO.3.96.1021025110042.28181A-101000@shell1>; from dennisn@pe.net on Fri, Oct 25, 2002 at 11:30:36AM -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.GSO.3.96.1021025110042.28181A-101000@shell1>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Fri, Oct 25, 2002 at 11:30:36AM -0700, Dennis Newbold wrote:

>      I'm trying to build gcj (GNU Java ahead-of-time compiler) from
> the sources.  It ran for quite awhile, and then on a particular file,
> it got about 20 "Error: branch out of range" errors from the gas
> assembler.  I'm hoping that someone on this list that understands gcc

This is supposedly fixed in the very latest versions.

As a temporary workaround that works for most files enable optimization
-O or even -O2 for those files affected by this problem.  -fno-inline
or -Os may also help - basically everything that reduces the code size.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>