Bug 32591 - [4.3 Regression] ICE: in vn_binary_op_insert, at tree-ssa-sccvn.c:852
Summary: [4.3 Regression] ICE: in vn_binary_op_insert, at tree-ssa-sccvn.c:852
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2007-07-02 18:40 UTC by John David Anglin
Modified: 2007-07-15 17:08 UTC (History)
3 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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2007-07-02 18:40:51 UTC
(gdb) r
Starting program: /home/dave/gnu/gcc-4.3/objdir/gcc/cc1 -iprefix /home/dave/gnu/gcc-4.3/objdir/gcc/../lib/gcc/hppa-linux/4.3.0/ -isystem /home/dave/gnu/gcc-4.3/objdir/gcc/include -isystem /home/dave/gnu/gcc-4.3/objdir/gcc/include-fixed /home/dave/gnu/gcc-4.3/gcc/gcc/testsuite/gcc.c-torture/execute/20040709-1.c -dumpbase 20040709-1.c -auxbase-strip /home/dave/gnu/gcc-4.3/objdir/gcc/testsuite/gcc/20040709-1.s -g -O3 -w -version -fno-show-column -o /home/dave/gnu/gcc-4.3/objdir/gcc/testsuite/gcc/20040709-1.s
GNU C version 4.3.0 20070701 (experimental) (hppa-linux)
        compiled by GNU C version 4.3.0 20070701 (experimental), GMP version 4.2.1, MPFR version 2.2.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed:  -iprefix
 /home/dave/gnu/gcc-4.3/objdir/gcc/../lib/gcc/hppa-linux/4.3.0/ -isystem
 /home/dave/gnu/gcc-4.3/objdir/gcc/include -isystem
 /home/dave/gnu/gcc-4.3/objdir/gcc/include-fixed
 /home/dave/gnu/gcc-4.3/gcc/gcc/testsuite/gcc.c-torture/execute/20040709-1.c
 -auxbase-strip
 /home/dave/gnu/gcc-4.3/objdir/gcc/testsuite/gcc/20040709-1.s -g -O3 -w
 -fno-show-column
options enabled:  -falign-loops -fargument-alias -fauto-inc-dec
 -fbranch-count-reg -fcaller-saves -fcommon -fcprop-registers
 -fcrossjumping -fcse-follow-jumps -fdefer-pop -fdelayed-branch
 -fdelete-null-pointer-checks -fearly-inlining
 -feliminate-unused-debug-types -femit-class-debug-always
 -fexpensive-optimizations -fforward-propagate -ffunction-cse -fgcse
 -fgcse-after-reload -fgcse-lm -fguess-branch-probability -fident
 -fif-conversion -fif-conversion2 -finline-functions
 -finline-functions-called-once -fipa-pure-const -fipa-reference
 -fipa-type-escape -fivopts -fkeep-static-consts -fleading-underscore
 -fmath-errno -fmerge-constants -fmove-loop-invariants -fomit-frame-pointer
 -foptimize-register-move -foptimize-sibling-calls -fpeephole -fpeephole2
 -fpredictive-commoning -freg-struct-return -fregmove -freorder-blocks
 -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec
 -fsched-stalled-insns-dep -fschedule-insns -fschedule-insns2
 -fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types
 -fstrict-aliasing -fstrict-overflow -fthread-jumps -ftoplevel-reorder
 -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename
 -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
 -ftree-loop-ivcanon -ftree-loop-optimize -ftree-pre -ftree-salias
 -ftree-scev-cprop -ftree-sink -ftree-sra -ftree-store-ccp
 -ftree-store-copy-prop -ftree-ter -ftree-vect-loop-version -ftree-vrp
 -funit-at-a-time -funswitch-loops -fvar-tracking -fzero-initialized-in-bss
 -mbig-switch -mgas -mglibc -mno-space-regs
Compiler executable checksum: 9ad686b864ad4f3d9ad9341e03e3792f
 myrnd retmeA fn1A fn2A retitA fn3A testA retmeB fn1B fn2B retitB fn3B testB retmeC fn1C fn2C retitC fn3C testC retmeD fn1D fn2D retitD fn3D testD retmeE fn1E fn2E retitE fn3E testE retmeF fn1F fn2F retitF fn3F testF retmeG fn1G fn2G retitG fn3G testG retmeH fn1H fn2H retitH fn3H testH retmeI fn1I fn2I retitI fn3I testI retmeJ fn1J fn2J retitJ fn3J testJ retmeK fn1K fn2K retitK fn3K testK retmeL fn1L fn2L retitL fn3L testL retmeM fn1M fn2M retitM fn3M testM retmeN fn1N fn2N retitN fn3N testN retmeO fn1O fn2O retitO fn3O testO retmeP fn1P fn2P retitP fn3P testP retmeQ fn1Q fn2Q retitQ fn3Q testQ retmeR fn1R fn2R retitR fn3R testR retmeS fn1S fn2S retitS fn3S testS retmeT fn1T fn2T retitT fn3T testT retmeU fn1U fn2U retitU fn3U testU retmeV fn1V fn2V retitV fn3V testV retmeW fn1W fn2W retitW fn3W testW retmeX fn1X fn2X retitX fn3X testX retmeY fn1Y fn2Y retitY fn3Y testY retmeZ fn1Z fn2Z retitZ fn3Z testZ main
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> {GC 5378k -> 3703k} <inline> <static-var> <pure-const> <type-escape-var>Assembling functions:
 myrnd retmeA fn1A fn2A retitA fn3A retmeB fn1B fn2B retitB fn3B retmeC fn1C fn2C retitC fn3C retmeD fn1D fn2D retitD fn3D retmeE fn1E fn2E retitE fn3E retmeF fn1F fn2F retitF fn3F retmeG fn1G fn2G retitG fn3G retmeH fn1H fn2H retitH fn3H retmeI fn1I fn2I retitI fn3I retmeJ fn1J fn2J retitJ fn3J retmeK fn1K fn2K retitK fn3K retmeL fn1L fn2L retitL {GC 5325k -> 3714k} fn3L retmeM fn1M fn2M retitM fn3M retmeN fn1N fn2N retitN fn3N retmeO fn1O fn2O retitO fn3O retmeP fn1P fn2P retitP fn3P retmeQ fn1Q fn2Q retitQ fn3Q retmeR fn1R fn2R retitR fn3R retmeS fn1S fn2S retitS fn3S retmeT fn1T fn2T retitT fn3T retmeU fn1U fn2U retitU fn3U retmeV fn1V fn2V retitV fn3V retmeW fn1W fn2W retitW fn3W retmeX fn1X fn2X retitX fn3X retmeY fn1Y fn2Y retitY fn3Y retmeZ fn1Z fn2Z retitZ {GC 5324k -> 3460k} fn3Z testZ testY testX testW {GC 5327k -> 3275k} testV testU testT testS testR testQ {GC 5325k -> 2851k} testP testO testN testM testL testK {GC 5335k -> 2424k} testJ testI testH testG testF testE testD {GC 5330k -> 1941k} testC testB testA
/home/dave/gnu/gcc-4.3/gcc/gcc/testsuite/gcc.c-torture/execute/20040709-1.c: In function 'testA':
/home/dave/gnu/gcc-4.3/gcc/gcc/testsuite/gcc.c-torture/execute/20040709-1.c:90: internal compiler error: in vn_binary_op_insert, at tree-ssa-sccvn.c:852
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Program exited with code 04.

(gdb) p *slot
$1 = (void *) 0x0
(gdb) bt
#0  vn_binary_op_insert (op=<value optimized out>, result=0x403d2ce8)
    at ../../gcc/gcc/tree-ssa-sccvn.c:852
#1  0x0040113c in visit_use (use=<value optimized out>)
    at ../../gcc/gcc/tree-ssa-sccvn.c:1110
#2  0x00401b20 in DFS (name=0x403d2ce8) at ../../gcc/gcc/tree-ssa-sccvn.c:1723
#3  0x004017fc in DFS (name=0x403971f8) at ../../gcc/gcc/tree-ssa-sccvn.c:1790
#4  0x004017fc in DFS (name=0x403d2d20) at ../../gcc/gcc/tree-ssa-sccvn.c:1790
#5  0x004017fc in DFS (name=0x403d2d58) at ../../gcc/gcc/tree-ssa-sccvn.c:1790
#6  0x004017fc in DFS (name=0x40397268) at ../../gcc/gcc/tree-ssa-sccvn.c:1790
#7  0x004021bc in run_scc_vn () at ../../gcc/gcc/tree-ssa-sccvn.c:2020
#8  0x003f12bc in execute_pre (do_fre=1 '\001')
    at ../../gcc/gcc/tree-ssa-pre.c:3977
#9  0x003f1f90 in execute_fre () at ../../gcc/gcc/tree-ssa-pre.c:4071
#10 0x0026e090 in execute_one_pass (pass=0x69a1b8)
    at ../../gcc/gcc/passes.c:1125
#11 0x0026e2a4 in execute_pass_list (pass=0x69a1b8)
    at ../../gcc/gcc/passes.c:1178
#12 0x0026e2b8 in execute_pass_list (pass=0x699704)
    at ../../gcc/gcc/passes.c:1179
#13 0x00355ae4 in tree_rest_of_compilation (fndecl=0x40179c00)
    at ../../gcc/gcc/tree-optimize.c:406
#14 0x0049b3b8 in cgraph_expand_function (node=0x40179c80)
    at ../../gcc/gcc/cgraphunit.c:1073
---Type <return> to continue, or q <return> to quit---
#15 0x0049dd34 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1142
#16 0x000314d4 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7911
#17 0x002fc7d4 in toplev_main (argc=<value optimized out>,
    argv=<value optimized out>) at ../../gcc/gcc/toplev.c:1064
#18 0x40aeb564 in __libc_start_main () from /lib/libc.so.6

dave@mx3210:~/gnu/gcc-4.3/objdir/gcc$ ./xgcc -B./ -v
Reading specs from ./specs
Target: hppa-linux
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared --prefix=/home/dave/opt/gnu/gcc/gcc-4.3.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --build=hppa-linux --enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt=xlib --enable-languages=c++
Thread model: posix
gcc version 4.3.0 20070701 (experimental)
Comment 1 Daniel Berlin 2007-07-02 19:40:47 UTC
I cannot reproduce with a cross to hppa-linux.
Is this still happening with the latest patches as of this morning?
Comment 2 dave 2007-07-02 20:09:35 UTC
Subject: Re:  [4.3 Regression] ICE: in vn_binary_op_insert, at tree-ssa-sccvn.c:852

> I cannot reproduce with a cross to hppa-linux.
> Is this still happening with the latest patches as of this morning?

This was before your patch this morning.  I'll recheck.

Dave
Comment 3 John David Anglin 2007-07-15 17:08:26 UTC
Fixed.