From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16684 invoked by alias); 29 Dec 2006 18:55:03 -0000 Received: (qmail 16586 invoked by alias); 29 Dec 2006 18:54:51 -0000 Date: Fri, 29 Dec 2006 18:55:00 -0000 Message-ID: <20061229185451.16585.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/25392] ICEs with -ff2c In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-12/txt/msg02075.txt.bz2 ------- Comment #10 from tobi at gcc dot gnu dot org 2006-12-29 18:54 ------- Subject: Bug 25392 Author: tobi Date: Fri Dec 29 18:54:41 2006 New Revision: 120274 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120274 Log: Backport from trunk: fortran/ PR fortran/25392 * trans-stmt.c (gfc_trans_return): Fix comment formatting. * trans-types.c (gfc_sym_type): Don't return early for functions. Remove special handling for -ff2c. (gfc_get_function_type): Add special handling for -ff2c. * trans-decl.c (gfc_create_function_decl): Fix comment formatting. (gfc_get_fake_result_decl): Make sure we get the right type for functions. (gfc_generate_function_code): Convert type of result variable to type of function. testsuite/ PR fortran/25392 * gfortran.dg/f2c_8.f90: New test. Added: branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/f2c_8.f90 Modified: branches/gcc-4_2-branch/gcc/fortran/ChangeLog branches/gcc-4_2-branch/gcc/fortran/trans-decl.c branches/gcc-4_2-branch/gcc/fortran/trans-stmt.c branches/gcc-4_2-branch/gcc/fortran/trans-types.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25392