public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/62245] New: gfortran miscompiles int() on mips
@ 2014-08-24 10:54 jtaylor.debian at googlemail dot com
  2014-08-24 11:29 ` [Bug fortran/62245] " Joost.VandeVondele at mat dot ethz.ch
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jtaylor.debian at googlemail dot com @ 2014-08-24 10:54 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-09-05 13:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-24 10:54 [Bug fortran/62245] New: gfortran miscompiles int() on mips jtaylor.debian at googlemail dot com
2014-08-24 11:29 ` [Bug fortran/62245] " Joost.VandeVondele at mat dot ethz.ch
2014-08-24 11:32 ` jtaylor.debian at googlemail dot com
2014-08-24 11:35 ` Joost.VandeVondele at mat dot ethz.ch
2014-08-24 11:40 ` jtaylor.debian at googlemail dot com
2014-08-24 11:42 ` jtaylor.debian at googlemail dot com
2014-08-24 12:01 ` Joost.VandeVondele at mat dot ethz.ch
2014-08-24 12:03 ` jtaylor.debian at googlemail dot com
2014-08-24 12:33 ` Joost.VandeVondele at mat dot ethz.ch
2014-08-24 12:35 ` jtaylor.debian at googlemail dot com
2014-08-24 12:36 ` Joost.VandeVondele at mat dot ethz.ch
2014-08-24 15:21 ` kargl at gcc dot gnu.org
2014-09-05 13:40 ` vondele at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).