]> gcc.gnu.org Git - gcc.git/commit
fortran: New predicate gfc_length_one_character_type_p
authorMikael Morin <mikael@gcc.gnu.org>
Mon, 14 Aug 2023 19:51:42 +0000 (21:51 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Mon, 14 Aug 2023 20:11:06 +0000 (22:11 +0200)
commite0a8218f12c00a5a477137c78d9df4ea32f6cc87
tree35ac58b5be7f91ec77ed26da05424086bd9e0def
parentce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83
fortran: New predicate gfc_length_one_character_type_p

Introduce a new predicate to simplify conditionals checking for
a character type whose length is the constant one.

gcc/fortran/ChangeLog:

* gfortran.h (gfc_length_one_character_type_p): New inline
function.
* check.cc (is_c_interoperable): Use
gfc_length_one_character_type_p.
* decl.cc (verify_bind_c_sym): Same.
* trans-expr.cc (gfc_conv_procedure_call): Same.
gcc/fortran/check.cc
gcc/fortran/decl.cc
gcc/fortran/gfortran.h
gcc/fortran/trans-expr.cc
This page took 0.05826 seconds and 5 git commands to generate.