re PR fortran/32035 ('<anonymous>' may be used uninitialized in this function)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 27 Jul 2007 14:26:43 +0000 (14:26 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 27 Jul 2007 14:26:43 +0000 (14:26 +0000)
commit2b8327ce6ab70ad4240aa99e6f67d823e5966724
tree6147088e80b2ea736c45bd8f73774d61784096d3
parent8fb632ebbee726472d103728d9a14c3bf437999e
re PR fortran/32035 ('<anonymous>' may be used uninitialized in this function)

PR fortran/32035

* trans-stmt.c (gfc_trans_character_select): Replace the
mechanism with labels by a SWITCH_EXPR.
* trans-decl.c (gfc_build_builtin_function_decls): Change
return type for select_string.

* runtime/select.c (select_string): Adjust prototype and function
so that the return value is an integer, not a pointer.

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

From-SVN: r126978
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_char_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/runtime/select.c