Bug 30149 - [4.3 Regression] tree-cfg.c:1924: ICE: in cse_find_path, at cse.c:5930
Summary: [4.3 Regression] tree-cfg.c:1924: ICE: in cse_find_path, at cse.c:5930
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Steven Bosscher
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2006-12-11 17:40 UTC by John David Anglin
Modified: 2007-01-25 00:58 UTC (History)
2 users (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2006-12-11 18:36:46


Attachments
Preprocessed source (144.12 KB, text/plain)
2006-12-11 18:17 UTC, John David Anglin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-12-11 17:40:03 UTC
/home/dave/gcc-4.3/objdir/./prev-gcc/xgcc -B/home/dave/gcc-4.3/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-4.3.0/hppa-linux/bin/ -c   -g -O2 -DIN_GCC   -W -
Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-lon
g-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmis
sing-format-attribute -Werror -fno-common   -DHAVE_CONFIG_H -I. -I. -I../../gcc/
gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/inclu
de  -I../../gcc/gcc/../libdecnumber -I../libdecnumber    ../../gcc/gcc/tree-eh.c
 -o tree-eh.o
../../gcc/gcc/tree-cfg.c: In function 'remove_useless_stmts_1':
../../gcc/gcc/tree-cfg.c:1924: internal compiler error: in cse_find_path, at cse
.c:5930

#0  fancy_abort (file=0xa79740 "../../gcc/gcc/cse.c", line=5930,
    function=0xa79834 "cse_find_path") at ../../gcc/gcc/diagnostic.c:642
#1  0x0036985c in cse_find_path (first_bb=0x40ff1cf0, data=0xc01ddfdc,
    follow_jumps=1) at ../../gcc/gcc/cse.c:5930
#2  0x0036a964 in cse_main (f=0x40d7d660, nregs=685)
    at ../../gcc/gcc/cse.c:6209
#3  0x0036cbe8 in rest_of_handle_cse () at ../../gcc/gcc/cse.c:6967
#4  0x00768fe4 in execute_one_pass (pass=0xb09e70)
    at ../../gcc/gcc/passes.c:858
#5  0x00769200 in execute_pass_list (pass=0xb09e70)
    at ../../gcc/gcc/passes.c:902
#6  0x00769234 in execute_pass_list (pass=0xb0b14c)
    at ../../gcc/gcc/passes.c:903
#7  0x00172800 in tree_rest_of_compilation (fndecl=0x409aeaf0)
    at ../../gcc/gcc/tree-optimize.c:463
#8  0x0004d2cc in c_expand_body (fndecl=0x409aeaf0)
    at ../../gcc/gcc/c-decl.c:6855
#9  0x00801f84 in cgraph_expand_function (node=0x40cba180)
    at ../../gcc/gcc/cgraphunit.c:1096
#10 0x0080232c in cgraph_expand_all_functions ()
    at ../../gcc/gcc/cgraphunit.c:1161
#11 0x008032fc in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1440
#12 0x00051428 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7968
---Type <return> to continue, or q <return> to quit---
#13 0x006d9dc4 in compile_file () at ../../gcc/gcc/toplev.c:1040
#14 0x006dc8a0 in do_compile () at ../../gcc/gcc/toplev.c:2089
#15 0x006dc94c in toplev_main (argc=39, argv=0xc01dd760)
    at ../../gcc/gcc/toplev.c:2121
#16 0x00123930 in main (argc=39, argv=0xc01dd760) at ../../gcc/gcc/main.c:35

Looks to be the same problem as reported on gcc list for mipsel-linux.
Comment 1 John David Anglin 2006-12-11 18:17:45 UTC
Created attachment 12784 [details]
Preprocessed source
Comment 2 Steven Bosscher 2006-12-13 07:51:36 UTC
I posted a patch that fixes the mipsel, HPPA, and CC0 problems here:
http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00800.html

Will ask for approval of this patch tonight.
Comment 3 Steven Bosscher 2007-01-24 22:22:28 UTC
I thought I fixed this...?
Comment 4 dave 2007-01-25 00:56:59 UTC
Subject: Re:  [4.3 Regression] tree-cfg.c:1924: ICE: in cse_find_path, at cse.c:5930

> ------- Comment #3 from steven at gcc dot gnu dot org  2007-01-24 22:22 -------
> I thought I fixed this...?

I'm not seeing the problem anymore...

Dave
Comment 5 Andrew Pinski 2007-01-25 00:58:18 UTC
Fixed so closing as such.