re PR fortran/90903 (Implement runtime checks for bit manipulation intrinsics)
authorHarald Anlauf <anlauf@gmx.de>
Tue, 16 Jul 2019 19:58:15 +0000 (19:58 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Tue, 16 Jul 2019 19:58:15 +0000 (19:58 +0000)
commitdf1afcca584270fcb6b8902492758b5ec261a4d5
tree877d574bcb5078adbad39bbac737be31206f86d7
parent460bf043c8266dd080308f4783137aee0d0f862c
re PR fortran/90903 (Implement runtime checks for bit manipulation intrinsics)

2019-07-16  Harald Anlauf  <anlauf@gmx.de>

PR fortran/90903
* libgfortran.h: Add mask for -fcheck=bits option.
* options.c (gfc_handle_runtime_check_option): Add option "bits"
to run-time checks selectable via -fcheck.
* trans-intrinsic.c (gfc_conv_intrinsic_btest)
(gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ibits)
(gfc_conv_intrinsic_shift, gfc_conv_intrinsic_ishft)
(gfc_conv_intrinsic_ishftc): Implement run-time checks for the
POS, LEN, SHIFT, and SIZE arguments.
* gfortran.texi: Document run-time checks for bit manipulation
intrinsics.
* invoke.texi: Document new -fcheck=bits option.

PR fortran/90903
* gfortran.dg/check_bits_1.f90: New testcase.

From-SVN: r273535
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/invoke.texi
gcc/fortran/libgfortran.h
gcc/fortran/options.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/check_bits_1.f90 [new file with mode: 0644]