This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32035] '<anonymous>' may be used uninitialized in this function
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2007 14:26:55 -0000
- Subject: [Bug fortran/32035] '<anonymous>' may be used uninitialized in this function
- References: <bug-32035-10601@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-07-27 14:26 -------
Subject: Bug 32035
Author: fxcoudert
Date: Fri Jul 27 14:26:43 2007
New Revision: 126978
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126978
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/select_char_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/runtime/select.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32035