This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]