intrinsic.c (add_conv): No longer take a "simplify" argument as its always gfc_conver...
authorRoger Sayle <roger@eyesopen.com>
Wed, 1 Jun 2005 19:17:37 +0000 (19:17 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 1 Jun 2005 19:17:37 +0000 (19:17 +0000)
commitc3a29423de8cfb7e2b5642b9d44eb21e4b286aec
treeaca5715d2e2402e23f8d6fcb8a69bdb7516dab2e
parentcdeee6d28017c9c881d2395645b3314fa575e59b
intrinsic.c (add_conv): No longer take a "simplify" argument as its always gfc_convert_constant...

* intrinsic.c (add_conv): No longer take a "simplify" argument as
its always gfc_convert_constant, instead take a "standard" argument.
(add_conversions): Change all existing calls of add_conv to pass
GFC_STD_F77 as appropriate.  Additionally, if we're allowing GNU
extensions support integer-logical and logical-integer conversions.
(gfc_convert_type_warn): Warn about use the use of these conversions
as a extension when appropriate, i.e. with -pedantic.
* simplify.c (gfc_convert_constant): Add support for integer to
logical and logical to integer conversions, using gfc_int2log and
gfc_log2int.
* arith.c (gfc_log2int, gfc_int2log): New functions.
* arith.h (gfc_log2int, gfc_int2log): Prototype here.
* gfortran.texi: Document this new GNU extension.

* gfortran.dg/logint-1.f: New test case.
* gfortran.dg/logint-2.f: Likewise.
* gfortran.dg/logint-3.f: Likewise.

From-SVN: r100461
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/arith.h
gcc/fortran/gfortran.texi
gcc/fortran/intrinsic.c
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/logint-1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/logint-2.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/logint-3.f [new file with mode: 0644]