OSDN Git Service

PR fortran/32035
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2007 14:26:43 +0000 (14:26 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2007 14:26:43 +0000 (14:26 +0000)
commitdfdf77878096582514666fe5be368386860c794e
tree6147088e80b2ea736c45bd8f73774d61784096d3
parent06ae9c5b7fd3e3f7bbd41fa6958b7d1b685cda17
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126978 138bc75d-0d04-0410-961f-82ee72b054a4
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