This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: BigInteger build problem - again
- To: Matt Welsh <mdw at cs dot berkeley dot edu>
- Subject: Re: BigInteger build problem - again
- From: Warren Levy <warrenl at cygnus dot com>
- Date: Wed, 26 Apr 2000 16:47:23 -0700 (PDT)
- cc: java-discuss at sourceware dot cygnus dot com
On Wed, 26 Apr 2000, Matt Welsh wrote:
> I am building the latest CVS libgcj using gcc-2.95.2 with Bryce's
> latest patch (2000-04-18). However, I get the following error
> while compiling libgcj:
I know this skirts around the issue of the compiler problem you're
questioning, but if you (or anyone else) want(s) to workaround this
failure at the libgcj level, you can simply apply this patch to the
isNegative method in BigInteger.java:
@@ -148,7 +147,10 @@ public class BigInteger /* FIXME: extend
private final boolean isNegative()
{
- return (words == null ? ival : words[ival - 1]) < 0;
+ // FIXME: compiler error in egcs-19991214 when compiling to bytecode (only).
+ // return (words == null ? ival : words[ival - 1]) < 0;
+ int tmp = (words == null ? ival : words[ival - 1]);
+ return tmp < 0;
}
public int signum()
Hope this helps!
--warrenl