]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: prevent redundant integer division truncation warnings [PR108592]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 30 Jan 2023 21:46:43 +0000 (22:46 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 5 Feb 2023 21:52:54 +0000 (22:52 +0100)
commitd042f118798ae0648b45f97e63b0e5ab7c82c8ef
tree2b3c320b6e6ffcc85254c02a372ca50c3aa73071
parentf1a4c63c2f741617ae364e39db5bfaaae0fbaa65
Fortran: prevent redundant integer division truncation warnings [PR108592]

gcc/fortran/ChangeLog:

PR fortran/108592
* arith.cc (gfc_arith_divide): Emit integer division truncation
warnings using gfc_warning instead of gfc_warning_now to prevent
redundant messages.

gcc/testsuite/ChangeLog:

PR fortran/108592
* gfortran.dg/pr108592.f90: New test.
gcc/fortran/arith.cc
gcc/testsuite/gfortran.dg/pr108592.f90 [new file with mode: 0644]