[Bug tree-optimization/32892] New: pr32417.f90:5: internal compiler error: in build2_stat, at tree.c:3077

danglin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 25 16:16:00 GMT 2007


Executing on host:
/home/dave/gcc-4.3/objdir/gcc/testsuite/gfortran/../../gfortr
an -B/home/dave/gcc-4.3/objdir/gcc/testsuite/gfortran/../../  -w  "-O"   -c  -o
/home/dave/gcc-4.3/objdir/gcc/testsuite/gfortran/pr32417.o
/home/dave/gcc-4.3/gc
c/gcc/testsuite/gfortran.fortran-torture/compile/pr32417.f90    (timeout = 300)
/home/dave/gcc-4.3/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32417.f9
0: In function 'oneints':
/home/dave/gcc-4.3/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32417.f9
0:5: internal compiler error: in build2_stat, at tree.c:3077
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/home/dave/gcc-4.3/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32417.f9
0: In function 'oneints':
/home/dave/gcc-4.3/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32417.f9
0:5: internal compiler error: in build2_stat, at tree.c:3077
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

FAIL: gfortran.fortran-torture/compile/pr32417.f90,  "-O"   (internal compiler
e
rror)

Breakpoint 1, build2_stat (code=MINUS_EXPR, tt=0x40019cb0, arg0=0x400aaca0,
    arg1=0x400aacc0) at ../../gcc/gcc/tree.c:3077
3077        gcc_assert (TREE_CODE (arg0) == INTEGER_CST && TREE_CODE (arg1) ==
INTEGER_CST);
(gdb) bt
#0  build2_stat (code=MINUS_EXPR, tt=0x40019cb0, arg0=0x400aaca0,
    arg1=0x400aacc0) at ../../gcc/gcc/tree.c:3077
#1  0x001daff0 in fold_binary (code=PLUS_EXPR, type=0x40019cb0,
    op0=0x400aac00, op1=0x400aac80) at ../../gcc/gcc/fold-const.c:9278
#2  0x001f18ec in fold_build2_stat (code=MINUS_EXPR, type=0x40019cb0,
    op0=0x400aaca0, op1=0x400aacc0) at ../../gcc/gcc/fold-const.c:13095
#3  0x00398920 in add_to_parts (parts=0xc0536fa8, elt=<value optimized out>)
    at ../../gcc/gcc/tree-ssa-address.c:426
#4  0x0039940c in create_mem_ref (bsi=0xc0536e98, type=0x40019b60,
    addr=0xc0536ea4) at ../../gcc/gcc/tree-ssa-address.c:546
#5  0x003deac4 in rewrite_use_address (data=0xc0536c48, use=0x72d560,
    cand=0x75ea70) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5091
#6  0x003df258 in rewrite_uses (data=0xc0536c48)
    at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5150
#7  0x003e1580 in tree_ssa_iv_optimize_loop (data=0xc0536c48,
    loop=<value optimized out>) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5349
#8  0x003e1af0 in tree_ssa_iv_optimize ()
    at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5382
#9  0x003ee0b0 in tree_ssa_loop_ivopts () at ../../gcc/gcc/tree-ssa-loop.c:514
#10 0x00288e80 in execute_one_pass (pass=0x6c7450)
    at ../../gcc/gcc/passes.c:1125
#11 0x00289094 in execute_pass_list (pass=0x6c7450)
    at ../../gcc/gcc/passes.c:1178
---Type <return> to continue, or q <return> to quit---
#12 0x002890a8 in execute_pass_list (pass=0x6c7178)
    at ../../gcc/gcc/passes.c:1179
#13 0x002890a8 in execute_pass_list (pass=0x6c6b08)
    at ../../gcc/gcc/passes.c:1179
#14 0x00370dd0 in tree_rest_of_compilation (fndecl=0x4007a200)
    at ../../gcc/gcc/tree-optimize.c:406
#15 0x004b6668 in cgraph_expand_function (node=0x4007a380)
    at ../../gcc/gcc/cgraphunit.c:1073
#16 0x004b8fb0 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1142
#17 0x00094f98 in gfc_be_parse_file (set_yydebug=<value optimized out>)
    at ../../gcc/gcc/fortran/f95-lang.c:305
#18 0x003175c0 in toplev_main (argc=<value optimized out>,
    argv=<value optimized out>) at ../../gcc/gcc/toplev.c:1044
#19 0x407887a4 in __libc_start_main () from /lib/libc.so.6
#20 0x00025ce8 in _start ()

(gdb) p debug_tree (arg0)
 <nop_expr 0x400aaca0
    type <pointer_type 0x40019cb0
        type <real_type 0x40019b60 real4 SF
            size <integer_cst 0x4000e520 constant invariant 32>
            unit size <integer_cst 0x4000e2c0 constant invariant 4>
            align 32 symtab 0 alias set -1 canonical type 0x40019b60 precision
32
            pointer_to_this <pointer_type 0x40019cb0>>
        public unsigned SI size <integer_cst 0x4000e520 32> unit size
<integer_cst 0x4000e2c0 4>
        align 32 symtab 0 alias set -1 canonical type 0x40019cb0>

    arg 0 <ssa_name 0x40090498
        type <integer_type 0x40019380 public unsigned SI size <integer_cst
0x4000e520 32> unit size <integer_cst 0x4000e2c0 4>
            align 32 symtab 0 alias set -1 canonical type 0x40019380 precision
32 min <integer_cst 0x4000e540 0> max <integer_cst 0x4000e500 4294967295>>
        var <var_decl 0x40095de0 ivtmp___72> def_stmt <phi_node 0x40096a80>
        version 133>>
$1 = void

(gdb) p debug_tree (arg1)
 <nop_expr 0x400aacc0
    type <pointer_type 0x40019cb0
        type <real_type 0x40019b60 real4 SF
            size <integer_cst 0x4000e520 constant invariant 32>
            unit size <integer_cst 0x4000e2c0 constant invariant 4>
            align 32 symtab 0 alias set -1 canonical type 0x40019b60 precision
32
            pointer_to_this <pointer_type 0x40019cb0>>
        public unsigned SI size <integer_cst 0x4000e520 32> unit size
<integer_cst 0x4000e2c0 4>
        align 32 symtab 0 alias set -1 canonical type 0x40019cb0>

    arg 0 <mult_expr 0x400ad168
        type <integer_type 0x40019000 public unsigned sizetype SI size
<integer_cst 0x4000e520 32> unit size <integer_cst 0x4000e2c0 4>
            align 32 symtab 0 alias set -1 canonical type 0x40019700 precision
32 min <integer_cst 0x4000e5c0 0> max <integer_cst 0x4000e900 -1>>

        arg 0 <nop_expr 0x400aac40 type <integer_type 0x40019000>

            arg 0 <ssa_name 0x40090038 type <integer_type 0x40019310 int4>
                visited var <var_decl 0x400822a0 D.999> def_stmt
<gimple_modify_stmt 0x40080e80>
                version 113>> arg 1 <integer_cst 0x4000e2c0 4>>>
$2 = void

dave@gsyprf11:~/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
--enable-nls --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,c++,objc,fortran,ada,obj-c++,java
Thread model: posix
gcc version 4.3.0 20070724 (experimental)


-- 
           Summary: pr32417.f90:5: internal compiler error: in build2_stat,
                    at tree.c:3077
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32892



More information about the Gcc-bugs mailing list