On Thu, 4 Jul 2013, Tobias Burnus wrote:
> It sounds like the following bug:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47007
>
> libgfortran calls libc's strtof/strtod/strtold/libquadmath's strtoflt128
> to convert the number. And that function is locale dependent - but
> gfortran assumes tha
Hi Tobias!
>> The attached testcase requires gcc and gfortran, as well as a JDK
>> installation. When running "make" with gcc/gfortran 4.7.2 and
>> Oracle JDK 1.7, a single call to JNI_CreateJavaVM() changes the
>> behaviour of subsequent READ statements in the Fortran code,
>> depending on the va
Martin Reinecke wrote:
>
> The attached testcase requires gcc and gfortran, as well as a JDK
> installation. When running "make" with gcc/gfortran 4.7.2 and
> Oracle JDK 1.7, a single call to JNI_CreateJavaVM() changes the
> behaviour of subsequent READ statements in the Fortran code,
> depending
On 07/04/13 14:09, Florian Weimer wrote:
> What happens is that the JVM initialization in JNI_CreateJavaVM() calls
> setlocate. This seems to change the behavior of READ. I don't know enough
> about gfortran to judge whether READ should follow the libc locale or not.
All I can say is that I d
On 07/04/2013 01:55 PM, Martin Reinecke wrote:
On 07/04/13 13:43, Florian Weimer wrote:
On 07/04/2013 11:22 AM, Martin Reinecke wrote:
The attached testcase requires gcc and gfortran, as well as a JDK
installation. When running "make" with gcc/gfortran 4.7.2 and
Oracle JDK 1.7, a single call t
On 07/04/13 13:43, Florian Weimer wrote:
> On 07/04/2013 11:22 AM, Martin Reinecke wrote:
>> The attached testcase requires gcc and gfortran, as well as a JDK
>> installation. When running "make" with gcc/gfortran 4.7.2 and
>> Oracle JDK 1.7, a single call to JNI_CreateJavaVM() changes the
>> beh
On 07/04/2013 11:22 AM, Martin Reinecke wrote:
The attached testcase requires gcc and gfortran, as well as a JDK
installation. When running "make" with gcc/gfortran 4.7.2 and
Oracle JDK 1.7, a single call to JNI_CreateJavaVM() changes the
behaviour of subsequent READ statements in the Fortran cod
Hi,
I'm not sure if this is a bug in gcc, or in Java,
or maybe even a feature, so I'm asking for opinion here before
opening a PR...
The attached testcase requires gcc and gfortran, as well as a JDK
installation. When running "make" with gcc/gfortran 4.7.2 and
Oracle JDK 1.7, a single call to JNI