Re: Bug#757492: gfortran-4.9: miscompiles int() on mips

Matthias Klose <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
debian-mips, please handle this

Am 08.08.2014 um 21:40 schrieb Julian Taylor:
> Package: gfortran-4.9
> Version: 4:4.9.1-1
> Severity: important
> 
> gfortran miscompiles int() for negative overflows leading to a build
> timeout of python-scipy, see #756905
> below a testcase, according to
> https://gcc.gnu.org/onlinedocs/gfortran/INT.html the result should be
> -2147483648
> 
> (sid_mips-dchroot)jtaylor@gabrielli:~$ apt-cache  policy gfortran
> gfortran:
>   Installed: 4:4.9.1-1
>   Candidate: 4:4.9.1-1
>   Version table:
>  *** 4:4.9.1-1 0
>         500 http://mirror-ubc.debian.org/debian/ sid/main mips Packages
>         100 /var/lib/dpkg/status
> (sid_mips-dchroot)jtaylor@gabrielli:~$ cat test.f90
>       program add
>       implicit none
>       real a,b,s
>       read *, a
>       print *, ' is ' , int(a)
>       stop
>       end
> (sid_mips-dchroot)jtaylor@gabrielli:~$ gfortran test.f90
> (sid_mips-dchroot)jtaylor@gabrielli:~$ ./a.out
> -1e99
>   is   2147483647
> Note: The following floating-point exceptions are signalling:
> IEEE_INVALID_FLAG IEEE_OVERFLOW_FLAG
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.