This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
literal 1000. of type double is out of range error on ppc32 soft-float
- From: Martin Michlmayr <tbm at cyrius dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 25 Oct 2007 13:05:46 +0200
- Subject: literal 1000. of type double is out of range error on ppc32 soft-float
I'm seeing the following error when building gjdoc on a ppc32 soft-float
system:
> pw.println("Preparation (driver) took "+(((double)(beforeDocletTime-startTime))/1000.)+" s");
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>src/gnu/classpath/tools/gjdoc/Timer.java:34: error: The literal
>1000. of type double is out of range
I'm using Debian's gcj-4.2 package on a ppc32 system soft-float
system (i.e. without FPU). My gcc/gcj is configured with:
--with-float=soft --without-long-double-128 --enable-softfloat
Dalibor Topic suggested on IRC to replace 1000.0 with (double)1000
which works. The pecular thing is that it also works when I made this
substition only for the first out of three occurrences of 1000.0 in
that file.
Has anyone seen this before, and is anyone interested in looking at
this problem? I'm happy to give people access to the system.
Thanks,
--
Martin Michlmayr
http://www.cyrius.com/