[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-27 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032

[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-27 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-27 17:13 --- Fixed. -- What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-27 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-27 17:13 --- Subject: Bug 19032 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-27 17:13:07 Modified files: gcc/fortran: ChangeLog trans-intrinsic.c

[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-20 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-20 19:56 --- Updated patch here: http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01563.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032

[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-20 Thread tobi at gcc dot gnu dot org
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |tobi at gcc dot gnu dot org |dot org | Status|NEW

[Bug libfortran/19032] modulo generates wrong result for divisor 1 and -1

2004-12-17 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2004-12-17 14:27 --- I've adjusted the subject. I've had a look at the real modulo and mod case, but didn't quite understand it - it appeared to be overly complicated, compared to the straightforward formula a - floor(a/b)*

[Bug libfortran/19032] modulo generates wrong result for divisor -1

2004-12-16 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-17 01:18 --- A patch for integers is here: http://gcc.gnu.org/ml/fortran/2004-12/msg00171.html I had guessed so Thomas, but I hoped that someone else would complete the fix :-) -- What|Removed

[Bug libfortran/19032] modulo generates wrong result for divisor -1

2004-12-16 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2004-12-16 22:40 --- Reals are also broken: $ cat mod-real.f90 program main real :: a,b a = 2.0 b = -1.0 print *,modulo(a,b) end program main $ gfortran mod-real.f90 $ ./a.out -1.00 -- http://gcc.gnu.org/b

[Bug libfortran/19032] modulo generates wrong result for divisor -1

2004-12-16 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-16 14:42 --- (In reply to comment #1) > The second result is correct, the first wrong. It's the other way round, as might be obvious from comment #2 Sorry. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032

[Bug libfortran/19032] modulo generates wrong result for divisor -1

2004-12-16 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-16 14:41 --- I checked gfortran against the examples in the standard, and we seem to only get the case modulo (..., -1) wrong (result should be 0, we print -1) -- What|Removed |Added ---