Convert logical ops on integers to bitwise equivalent with -fdec.
authorFritz Reese <fritzoreese@gmail.com>
Tue, 25 Oct 2016 18:27:51 +0000 (18:27 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Tue, 25 Oct 2016 18:27:51 +0000 (18:27 +0000)
commitdd90ca33e8596f23354edc654528899feb12ff8a
treefbdb5797ca5232f6667b955ea9acce9be96c3d3d
parent2be1b7965039fa6949225f36de3f0b3ad2673fad
Convert logical ops on integers to bitwise equivalent with -fdec.

gcc/fortran/
* gfortran.texi: Document.
* resolve.c (logical_to_bitwise): New function.
* resolve.c (resolve_operator): Wrap operands with logical_to_bitwise.

gcc/testsuite/gfortran.dg/
* dec_bitwise_ops_1.f90, dec_bitwise_ops_2.f90: New testcases.

From-SVN: r241534
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_bitwise_ops_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_bitwise_ops_2.f90 [new file with mode: 0644]