]> gcc.gnu.org Git - gcc.git/commit
re PR libfortran/19032 (modulo generates wrong result for divisor 1 and -1)
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Mon, 27 Dec 2004 17:13:07 +0000 (18:13 +0100)
committerTobias Schlüter <tobi@gcc.gnu.org>
Mon, 27 Dec 2004 17:13:07 +0000 (18:13 +0100)
commite98a8b5b621c4c9be4cc5efa38cf34ff14e27d67
tree9ab5af294501132cc7f07c24458d26d441ed96c0
parent201a97b4799fd44526a65abbcc2621f7d27766f7
re PR libfortran/19032 (modulo generates wrong result for divisor 1 and -1)

fortran/
PR fortran/19032
* trans-intrinsic.c (gfc_conv_intrinsic_mod): Update comment
in front of function to match the standard.  Correct handling
of MODULO.

testsuite/
PR fortran/19032
* gfortran.dg/intrinsic_modulo_1.f90: New.
* gfortran.fortran-torture/execute/intrinsic_mod_ulo.f90: Add
tests with divisor -1.

From-SVN: r92645
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/intrinsic_modulo_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_mod_ulo.f90
This page took 0.060323 seconds and 5 git commands to generate.