This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/29439] ICE in fold-const.c:1385 ( expected integer_cst, have var_decl in int_const_binop )



------- Comment #3 from pluto at agmk dot net  2006-10-12 19:45 -------
cwd: ada/rts:
$ ../../gnat1 -quiet -dumpbase a-stwifi.adb -O1 -fwrapv -ftree-vrp \
              -gnatpg a-stwifi.adb -o a-stwifi.s

(gdb) bt
#0  int_const_binop (code=PLUS_EXPR, arg1=0x2b8302f027b0, arg2=0x2b8302f02810,
                     notrunc=0) at ../../gcc/fold-const.c:1385
#1  0x000000000077c1e0 in round_up (value=0x2b8302f027b0, divisor=8)
                          at ../../gcc/fold-const.c:12841
#2  0x000000000090a7ea in finalize_type_size (type=0x2b8302f0f160)
                          at ../../gcc/stor-layout.c:1431
#3  0x000000000090e2a4 in layout_type (type=0x2b8302f0f160)
                          at ../../gcc/stor-layout.c:1861
#4  0x000000000090ee38 in make_signed_type (precision=<value optimized out>)
                          at ../../gcc/stor-layout.c:1881
#5  0x000000000092433e in build_common_tree_nodes (signed_char=1 '\001',
                          signed_sizetype=<value optimized out>)
                          at ../../gcc/tree.c:6460
#6  0x0000000000423e00 in gnat_init_decl_processing ()
                          at ../../gcc/ada/utils.c:405
#7  0x000000000041bc9e in gnat_init () at ../../gcc/ada/misc.c:421
#8  0x0000000000912d1a in toplev_main (argc=<value optimized out>,
                          argv=<value optimized out>)
                          at ../../gcc/toplev.c:1900
#9  0x00002b8302cf0134 in __libc_start_main () from /lib64/libc.so.6
#10 0x00000000004030e9 in _start ()

(gdb) c debug_tree(arg1)
 <integer_cst 0x2b3a2e1c47b0 type <integer_type 0x2b3a2e1d10b0>
    constant invariant 8>
Value can't be converted to integer.

(gdb) c debug_tree(arg2)
 <integer_cst 0x2b3a2e1c4810 type <integer_type 0x2b3a2e1d10b0>
    constant invariant 7>


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]