From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24819 invoked by alias); 26 May 2010 14:53:15 -0000 Received: (qmail 24042 invoked by uid 48); 26 May 2010 14:52:51 -0000 Date: Wed, 26 May 2010 14:53:00 -0000 Message-ID: <20100526145251.24038.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: 2010-05/txt/msg02932.txt.bz2 ------- Comment #57 from dominiq at lps dot ens dot fr 2010-05-26 14:52 ------- > Author: pault > Date: Wed May 26 05:11:04 2010 > New Revision: 159852 The original code of pr40440 and the reduced test of comment #47 still ICE: (gdb) run -fwhole-file pr40440_red.f90 Starting program: /opt/gcc/gcc4.6w/libexec/gcc/x86_64-apple-darwin10.3.0/4.6.0/f951 -fwhole-file pr40440_red.f90 line_get_string_advance line_init syntax_init_from_ifile Breakpoint 1, fancy_abort (file=0x1009c1d20 "../../work/gcc/fold-const.c", line=2042, function=0x100a2b850 "fold_convert_loc") at ../../work/gcc/diagnostic.c:787 787 { (gdb) bt #0 fancy_abort (file=0x1009c1d20 "../../work/gcc/fold-const.c", line=2042, function=0x100a2b850 "fold_convert_loc") at ../../work/gcc/diagnostic.c:787 #1 0x00000001004bb6d1 in fold_convert_loc (loc=0, type=0x141e17930, arg=) at ../../work/gcc/fold-const.c:2042 #2 0x00000001000cc014 in gfc_trans_scalar_assign (lse=0x7fff5fbfd5f0, rse=0x7fff5fbfd5a0, ts={type = BT_DERIVED, kind = 0, u = {derived = 0x0, cl = 0x0}, interface = 0x0, is_c_interop = 0, is_iso_c = 0, f90_type = 0}, l_is_temp=0 '\0', r_is_var=0 '\0', dealloc=1 '\001') at ../../work/gcc/fortran/trans-expr.c:4836 #3 0x00000001000cf844 in gfc_trans_assignment_1 (expr1=0x14181e5d0, expr2=0x14181e750, init_flag=0 '\0', dealloc=1 '\001') at ../../work/gcc/fortran/trans-expr.c:5282 #4 0x00000001000cfc34 in gfc_trans_assignment (expr1=0x14181e5d0, expr2=0x14181e750, init_flag=0 '\0', dealloc=1 '\001') at ../../work/gcc/fortran/trans-expr.c:5424 #5 0x00000001000aa8e6 in trans_code (code=0x14181e810, cond=0x0) at ../../work/gcc/fortran/trans.c:1082 #6 0x00000001000c769f in gfc_generate_function_code (ns=) at ../../work/gcc/fortran/trans-decl.c:4483 #7 0x00000001000aad0b in gfc_generate_module_code (ns=) at ../../work/gcc/fortran/trans.c:1392 #8 0x000000010006cd0f in gfc_parse_file () at ../../work/gcc/fortran/parse.c:4287 #9 0x00000001000a586c in gfc_be_parse_file (set_yydebug=) at ../../work/gcc/fortran/f95-lang.c:239 #10 0x00000001006dc789 in toplev_main (argc=3, argv=0x7fff5fbfdad0) at ../../work/gcc/toplev.c:1049 #11 0x0000000100001094 in start () -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011