re PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2019 16:21:43 +0000 (16:21 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2019 16:21:43 +0000 (16:21 +0000)
commit5197d79937c3dcf57e1a3be4e624947220d4c8f8
tree9a76d70f09976b6c12171e9531bfced61c36c516
parenta3df90b9672562d0e2feeb093e20c1d21bd4cca5
re PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)

2019-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88298
* arith.c (gfc_int2int): Do not warn if src->do_not_warn is set.
* gfortran.h (gfc_expr): Add flag do_not_warn.
* intrinsic.c (gfc_convert_type_warn): Set expr->do_not_warn if
no warning is desired.

2019-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88298
* gfortran.dg/warn_conversion_10.f90: New test.

From-SVN: r268475
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/gfortran.h
gcc/fortran/intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/warn_conversion_10.f90 [new file with mode: 0644]