From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24033 invoked by alias); 4 May 2009 22:20:26 -0000 Received: (qmail 23960 invoked by uid 48); 4 May 2009 22:20:10 -0000 Date: Mon, 04 May 2009 22:20:00 -0000 Message-ID: <20090504222010.23959.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40011] Problems with -fwhole-file In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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: 2009-05/txt/msg00267.txt.bz2 ------- Comment #6 from dominiq at lps dot ens dot fr 2009-05-04 22:20 ------- Regtest gives: === gfortran Summary === # of expected passes 117714 # of unexpected failures 576 # of expected failures 78 # of unsupported tests 906 for RUNTESTFLAGS="--target_board=unix'{,-m64,/-fwhole-file,-m64/-fwhole-file}'" with no "unexpected failures" for {,-m64}. 444 failures come from cc1: warning: command line option "-fwhole-file" is valid for Fortran but not for C I think I know how to filter them. -------> generic_actual_arg.f90 fails with /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/generic_actual_arg.f90:40.64: CALL F(CALCULATION2) ! OK because there is a same name specific 1 Error: More actual than formal arguments in procedure call at (1) False positive? -------> global_references_1.f90 fails with SUBROUTINE j (x) ! { dg-error "is already being used as a FUNCTION" } 2 Error: Global name 'j' at (1) is already being used as a SUBROUTINE at (2) /opt/gcc/gcc-4.5-work/gcc/testsuite/gfortran.dg/global_references_1.f90:39.6: T = j () ! { dg-error "is already being used as a FUNCTION" } 1 Error: Missing actual argument for argument 'x' at (1) /opt/gcc/gcc-4.5-work/gcc/testsuite/gfortran.dg/global_references_1.f90:68.64: -------> hollerith.f90 fails with call test (8h hello) 1 Error: Type mismatch in argument 'h' at (1); passed HOLLERITH to INTEGER(8) -------> hollerith_legacy.f90 same failure -------> import6.f90 fails with opt/gcc/gcc-4.5-work/gcc/testsuite/gfortran.dg/import6.f90:42.13: call func1(x) 1 Error: Type mismatch in argument 'param' at (1); passed TYPE(my_type) to TYPE(my_type) Obviously some tests will require adjustments to pass with -fwhole-file. More tomorrow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011