------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-07-13 10:31 ------- This patch does'n work now, it fails on any input:
<built-in>:0: internal compiler error: tree check: expected function_decl, have type_decl in fold_checksum_tree, at fold-const.c:10288 #0 internal_error (gmsgid=0xc377c8 "tree check: %s, have %s in %s, at %s:%d") at ../../gcc41/gcc/diagnostic.c:534 #1 0x000000000098ba01 in tree_check_failed (node=0x2aaaaaf9e340, file=0xba6438 "../../gcc41/gcc/fold-const.c", line=10288, function=0xdf5d90 "fold_checksum_tree") at ../../gcc41/gcc/tree.c:5778 #2 0x0000000000731e54 in fold_checksum_tree (expr=0x2aaaaaf9e340, ctx=0x7fffffa5c0f0, ht=0xec7730) at ../../gcc41/gcc/fold-const.c:10288 #3 0x00000000007322a1 in fold_checksum_tree (expr=0x7fffffa5bb70, ctx=0x7fffffa5c0f0, ht=0xec7730) at ../../gcc41/gcc/fold-const.c:10302 #4 0x000000000073160f in fold_checksum_tree (expr=0x2aaaaaf835d0, ctx=0x7fffffa5c0f0, ht=0xec7730) at ../../gcc41/gcc/fold-const.c:10231 #5 0x0000000000732781 in fold_build2 (code=MINUS_EXPR, type=0x2aaaaaf91000, op0=0x2aaaaaf835d0, op1=0x2aaaaaf835d0) at ../../gcc41/gcc/fold-const.c:10379 #6 0x0000000000959db6 in layout_type (type=0x2aaaaafa1c60) at ../../gcc41/gcc/stor-layout.c:1715 #7 0x000000000097f3b8 in type_hash_lookup (hashcode=196468616, type=0x2aaaaafa1c60) at ../../gcc41/gcc/tree.c:3922 #8 0x000000000097f4f1 in type_hash_canon (hashcode=196468616, type=0x2aaaaafa1c60) at ../../gcc41/gcc/tree.c:3972 #9 0x0000000000986088 in build_array_type (elt_type=0x2aaaaafa1b00, index_type=0x2aaaaafa1bb0) at ../../gcc41/gcc/tree.c:4846 #10 0x00000000009f6c4e in ix86_build_builtin_va_list () at ../../gcc41/gcc/config/i386/i386.c:3402 #11 0x000000000098d191 in build_common_tree_nodes_2 (short_double=0) at ../../gcc41/gcc/tree.c:6097 #12 0x0000000000464b00 in c_common_nodes_and_builtins () -- What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2005-06-30 13:11:22 |2005-07-13 10:31:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21180