From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29879 invoked by alias); 15 Oct 2004 05:26:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29859 invoked by uid 48); 15 Oct 2004 05:26:12 -0000 Date: Fri, 15 Oct 2004 05:26:00 -0000 From: "aj at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041015052603.18005.aj@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/18005] New: ICE in fold-const.c/fold X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02041.txt.bz2 List-Id: I get now an ICE compiling glibc. The error is in 20041014 but also in 20041013 and has been introduced during the last 5 days or so (or glibc has changed in a way to trigger this). aj@gromit:/cvs/libc/stdlib> /opt/gcc/4.0-devel/libexec/gcc/x86_64-suse-linux-gnu/4.0.0/cc1-fpreprocessed tst-random.i -quiet -dumpbase tst-random.c -mtune=k8 -auxbase-strip /builds/glibc/4.0/stdlib/tst-random.o -O2 -std=gnu99 -version -o tst-random.s GNU C version 4.0.0 20041014 (experimental) (x86_64-suse-linux-gnu) compiled by GNU C version 4.0.0 20041014 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 tst-random.i: In function 'main': tst-random.i:2738: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Running under gdb shows: (gdb) r -fpreprocessed tst-random.i -quiet -dumpbase tst-random.c -mtune=k8 -auxbase-strip/builds/glibc/4.0/stdlib/tst-random.o -O2 -std=gnu99 -version -o tst-random.s GNU C version 4.0.0 20041014 (experimental) (x86_64-suse-linux-gnu) compiled by GNU C version 4.0.0 20041014 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Program received signal SIGSEGV, Segmentation fault. 0x00000000005b1b94 in fold (expr=0x2a95b67a50) at /cvs/gcc/gcc/fold-const.c:6051 6051 STRIP_NOPS (op); (gdb) bt #0 0x00000000005b1b94 in fold (expr=0x2a95b67a50) at /cvs/gcc/gcc/fold-const.c:6051 #1 0x00000000005cb832 in extract_muldiv (t=Variable "t" is not available. ) at /cvs/gcc/gcc/fold-const.c:5313 #2 0x00000000005b4655 in fold (expr=0x2a95b67a00) at /cvs/gcc/gcc/fold-const.c:7571 #3 0x00000000007bb9d6 in analyze_array_indexes (loop=0xb79850, access_fns=0xb78268, ref=Variable "ref" is not available. ) at /cvs/gcc/gcc/tree-data-ref.c:519 #4 0x00000000007becdd in analyze_array (stmt=0x2a95b01d20, ref=0x2a95afabd0, is_read=0 '\0') at /cvs/gcc/gcc/tree-data-ref.c:596 #5 0x00000000007bf069 in find_data_references_in_loop (loop=0xb79710, datarefs=0x7fbfffe860) at /cvs/gcc/gcc/tree-data-ref.c:2236 #6 0x00000000004d70b6 in estimate_numbers_of_iterations (loops=0xb56d00) at /cvs/gcc/gcc/tree-ssa-loop-niter.c:1005 #7 0x00000000004d5615 in tree_ssa_loop_bounds () at /cvs/gcc/gcc/tree-ssa-loop.c:308 #8 0x000000000047ca9d in execute_pass_list (pass=0xa8be60) at /cvs/gcc/gcc/tree-optimize.c:503 #9 0x000000000047cb29 in execute_pass_list (pass=0xa8c100) at /cvs/gcc/gcc/tree-optimize.c:539 #10 0x000000000047cb29 in execute_pass_list (pass=0xa87540) at /cvs/gcc/gcc/tree-optimize.c:539 #11 0x000000000047cd6f in tree_rest_of_compilation (fndecl=0x2a95aff380) at /cvs/gcc/gcc/tree-optimize.c:633 #12 0x000000000041a10b in c_expand_body (fndecl=0x2a95aff380) at /cvs/gcc/gcc/c-decl.c:6370 #13 0x00000000007ae32e in cgraph_expand_function (node=0x2a95b100e0) at /cvs/gcc/gcc/cgraphunit.c:1046 #14 0x00000000007b1c14 in cgraph_optimize () at /cvs/gcc/gcc/cgraphunit.c:2728 #15 0x000000000075bb55 in toplev_main (argc=Variable "argc" is not available. ) at /cvs/gcc/gcc/toplev.c:999 #16 0x0000002a9568900d in __libc_start_main () from /lib64/tls/libc.so.6 #17 0x00000000004023ca in _start () at start.S:113 (gdb) p expr $1 = 0x2a95b67a50 (gdb) pge (bit_size_type) iD.3284_20 * 1 (gdb) p op $2 = 0x2a95af53c0 (gdb) pt op unit size align 128 symtab 0 alias set -1 precision 68 min max > readonly arg 0 def_stmt version 20 in-free-list>> -- Summary: ICE in fold-const.c/fold Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aj at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005