arith.c (gfc_arith_divide): With -Winteger-division...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 1 Jul 2015 16:43:53 +0000 (16:43 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 1 Jul 2015 16:43:53 +0000 (16:43 +0000)
commitc219aeb7dea32513053b905ae584f19cc0813852
tree2f762c8a361c076863f419159d4a098030dac9d5
parent1e67793833846d12abe78f4291a07773d2f13a04
arith.c (gfc_arith_divide): With -Winteger-division...

2015-07-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

* arith.c (gfc_arith_divide):  With -Winteger-division,
warn about contant integer division if there is a non-zero
remainder.
* invoke.texi:  Document -Winteger-division.
* lang.opt:  Add -Winteger-division.

2015-07-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/warn_conversion_8.f90:  New test.

From-SVN: r225262
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/warn_conversion_8.f90 [new file with mode: 0644]