This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/62245] New: gfortran miscompiles int() on mips
- From: "jtaylor.debian at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Aug 2014 10:54:18 +0000
- Subject: [Bug fortran/62245] New: gfortran miscompiles int() on mips
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245
Bug ID: 62245
Summary: gfortran miscompiles int() on mips
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jtaylor.debian at googlemail dot com
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