]> git.ipfire.org Git - thirdparty/gcc.git/commit
trans.h (gfc_string_to_single_character): New prototype.
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Jul 2010 16:09:48 +0000 (18:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Jul 2010 16:09:48 +0000 (18:09 +0200)
commitd2886bc74445f954dc3f7cb5e471776ff4fd094e
treebfad22965ecaea510a0bd421b64f01317b1783c1
parentef8fc6c2eff4060e5acf59d7592837d352c706ce
trans.h (gfc_string_to_single_character): New prototype.

* trans.h (gfc_string_to_single_character): New prototype.
* trans-expr.c (string_to_single_character): Renamed to ...
(gfc_string_to_single_character): ... this.  No longer static.
(gfc_conv_scalar_char_value, gfc_build_compare_string,
gfc_trans_string_copy): Adjust callers.
* config-lang.in (gtfiles): Add fortran/trans-stmt.c.
* trans-stmt.c: Include ggc.h and gt-fortran-trans-stmt.h.
(select_struct): Move to toplevel, add GTY(()).
(gfc_trans_character_select): Optimize SELECT CASE
with character length 1.

* gfortran.dg/select_char_2.f90: New test.

From-SVN: r162226
gcc/fortran/ChangeLog
gcc/fortran/config-lang.in
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_char_2.f90 [new file with mode: 0644]