From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5775 invoked by alias); 2 Jan 2005 07:44:57 -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 5748 invoked by uid 48); 2 Jan 2005 07:44:49 -0000 Date: Sun, 02 Jan 2005 07:44:00 -0000 From: "aj at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050102074446.19224.aj@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/19224] New: Endless loop compiling simple file: Bug in tree-scalar-evolution.c (instantiate_parameters_1)? X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg00106.txt.bz2 List-Id: On one of my x86_64-linux systems with GCC CVS from 20041231, the testcase uses in a minute all available memory and therefore the process is killed. This happens not only on x86_64 but also on ia64 and ppc - it seems to work on i386. On my other x86_64-linux system with GCC CVS from 20050101 the testcase uses constant memory - but seems to be in an endless loop. Note the compilers are not configured exactly the same. Here's some information with the later system: /opt/gcc/4.0-devel/libexec/gcc/x86_64-suse-linux-gnu/4.0.0/cc1 -fpreprocessed add.i -dumpbase add.c -mtune=k8 -auxbase add -O -version -o add.s GNU C version 4.0.0 20050101 (experimental) (x86_64-suse-linux-gnu) compiled by GNU C version 4.0.0 20050101 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 options passed: -fpreprocessed -mtune=k8 -auxbase -O options enabled: -falign-loops -fargument-alias -fasynchronous-unwind-tables -fbranch-count-reg -fcommon -fcprop-registers -fdefer-pop -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fguess-branch-probability -fident -fif-conversion -fif-conversion2 -fivopts -fkeep-static-consts -fleading-underscore -floop-optimize -floop-optimize2 -fmath-errno -fmerge-constants -fomit-frame-pointer -fpeephole -freg-struct-return -fsched-interblock -fsched-spec -fsched-stalled-insns-dep -fsplit-ivs-in-unroller -fthread-jumps -ftrapping-math -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs -ftree-pre -ftree-sra -ftree-ter -funwind-tables -fvar-tracking -fzero-initialized-in-bss -m80387 -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387 -mno-fancy-math-387 -maccumulate-outgoing-args -mmmx -msse -msse2 -m128bit-long-double -m64 -mtls-direct-seg-refs -mtune=k8 -march=x86-64 vprintf getchar getc_unlocked getchar_unlocked putchar putc_unlocked putchar_unlocked strtod strtol strtoul atof atoi atol add_c add_double add_float add_long [killed by mself] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) r -fpreprocessed add.i -dumpbase add.c -mtune=k8 -auxbase add -O -version -o add.s GNU C version 4.0.0 20050101 (experimental) (x86_64-suse-linux-gnu) compiled by GNU C version 4.0.0 20050101 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 options passed: -fpreprocessed -mtune=k8 -auxbase -O options enabled: -falign-loops -fargument-alias -fasynchronous-unwind-tables -fbranch-count-reg -fcommon -fcprop-registers -fdefer-pop -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fguess-branch-probability -fident -fif-conversion -fif-conversion2 -fivopts -fkeep-static-consts -fleading-underscore -floop-optimize -floop-optimize2 -fmath-errno -fmerge-constants -fomit-frame-pointer -fpeephole -freg-struct-return -fsched-interblock -fsched-spec -fsched-stalled-insns-dep -fsplit-ivs-in-unroller -fthread-jumps -ftrapping-math -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs -ftree-pre -ftree-sra -ftree-ter -funwind-tables -fvar-tracking -fzero-initialized-in-bss -m80387 -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387 -mno-fancy-math-387 -maccumulate-outgoing-args -mmmx -msse -msse2 -m128bit-long-double -m64 -mtls-direct-seg-refs -mtune=k8 -march=x86-64 vprintf getchar getc_unlocked getchar_unlocked putchar putc_unlocked putchar_unlocked strtod strtol strtoul atof atoi atol add_c add_double add_float add_long (gdb) bt #0 0x000000000095d547 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ac6e10, allow_superloop_chrecs=0 '\0') at tree-chrec.h:47 #1 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5eb0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #2 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5f50, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #3 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6140, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #4 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad65f0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #5 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6640, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #6 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #7 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5dc0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #8 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5e10, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #9 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #10 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5af0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #11 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5b90, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #12 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5c30, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #13 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad61e0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #14 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6500, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #15 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad65f0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #16 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad68c0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #17 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6910, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #18 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #19 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5c30, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #20 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad61e0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #21 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6320, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #22 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6500, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #23 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad67d0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 ---Type to continue, or q to quit--- #24 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6820, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #25 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #26 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5f50, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #27 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6050, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #28 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad60a0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #29 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #30 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5eb0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #31 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5f50, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #32 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6050, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #33 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6140, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #34 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6190, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #35 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #36 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5b90, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #37 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5c30, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #38 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad61e0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #39 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6320, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #40 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad6370, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #41 0x000000000095dd3f in instantiate_parameters_1 (loop=0xdd1a00, chrec=Variable "chrec" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1949 #42 0x000000000095d72d in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5d20, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1966 #43 0x000000000095d6f4 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5dc0, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1964 #44 0x000000000095da95 in instantiate_parameters_1 (loop=0xdd1a00, chrec=0x2a95ad5e10, allow_superloop_chrecs=Variable "allow_superloop_chrecs" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:1956 #45 0x000000000095e9c8 in simple_iv (loop=0xdd1a00, stmt=Variable "stmt" is not available. ) at /cvs/gcc/gcc/tree-scalar-evolution.c:2109 #46 0x00000000004f17d8 in tree_ssa_iv_optimize_loop (data=0x7fbfffda30, loop=Variable "loop" is not available. ) at /cvs/gcc/gcc/tree-ssa-loop-ivopts.c:782 #47 0x00000000004f2876 in tree_ssa_iv_optimize (loops=0xd8eed0) at /cvs/gcc/gcc/tree-ssa-loop-ivopts.c:5164 #48 0x000000000047bd26 in execute_pass_list (pass=0xcd2400) at /cvs/gcc/gcc/tree-optimize.c:525 ---Type to continue, or q to quit--- #49 0x000000000047bdbb in execute_pass_list (pass=0xcd2760) at /cvs/gcc/gcc/tree-optimize.c:563 #50 0x000000000047bdbb in execute_pass_list (pass=0xccd740) at /cvs/gcc/gcc/tree-optimize.c:563 #51 0x000000000047c019 in tree_rest_of_compilation (fndecl=0x2a95a40d00) at /cvs/gcc/gcc/tree-optimize.c:661 #52 0x0000000000419c7b in c_expand_body (fndecl=0x2a95a40d00) at /cvs/gcc/gcc/c-decl.c:6384 #53 0x0000000000953f20 in cgraph_expand_function (node=0x2a95a570d0) at /cvs/gcc/gcc/cgraphunit.c:822 #54 0x00000000009540a8 in cgraph_assemble_pending_functions () at /cvs/gcc/gcc/cgraphunit.c:305 #55 0x00000000009547d9 in cgraph_finalize_function (decl=0x2a95a40d00, nested=0 '\0') at /cvs/gcc/gcc/cgraphunit.c:388 #56 0x000000000041a2b4 in finish_function () at /cvs/gcc/gcc/c-decl.c:6356 #57 0x000000000040611f in yyparse () at c-parse.y:401 #58 0x0000000000407d99 in c_parse_file () at c-parse.y:2922 #59 0x000000000044c3d6 in c_common_parse_file (set_yydebug=Variable "set_yydebug" is not available. ) at /cvs/gcc/gcc/c-opts.c:1092 #60 0x00000000008f6ece in toplev_main (argc=Variable "argc" is not available. ) at /cvs/gcc/gcc/toplev.c:992 #61 0x0000002a9568900d in __libc_start_main () from /lib64/tls/libc.so.6 #62 0x00000000004025ea in _start () at start.S:113 -- Summary: Endless loop compiling simple file: Bug in tree-scalar- evolution.c (instantiate_parameters_1)? Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization 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,rakdver 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=19224