[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#757492: marked as done (gfortran-4.9: miscompiles int() on mips)



Your message dated Wed, 27 Aug 2014 20:06:56 +0200
with message-id <53FE1E40.8000406@googlemail.com>
and subject line undefined behavior
has caused the Debian Bug report #757492,
regarding gfortran-4.9: miscompiles int() on mips
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
757492: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757492
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
according to upstream it is undefined behavior, so I added a workaround
to scipy.

--- End Message ---

Reply to: