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 c++/68368] New: [6 regression] ICE tree check: expected integer_cst, have nop_expr in decompose, at tree.h:5123


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68368

            Bug ID: 68368
           Summary: [6 regression] ICE tree check: expected integer_cst,
                    have nop_expr in decompose, at tree.h:5123
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Created attachment 36719
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36719&action=edit
eh_personality.ii

I've noticed this ICE while building GCC:
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/libstdc++-v3/libsupc++/eh_personality.cc:
In function '_Unwind_Reason_Code
__cxxabiv1::__gxx_personality_v0(_Unwind_State, _Unwind_Control_Block*,
_Unwind_Context*)':
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/libstdc++-v3/libsupc++/eh_personality.cc:394:25:
internal compiler error: tree check: expected integer_cst, have nop_expr in
decompose, at tree.h:5123
          UNWIND_STACK_REG))
                         ^

0x12c5f26 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.c:9587
0x6b0fe1 tree_check(tree_node const*, char const*, int, char const*, tree_code)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.h:3212
0x7208bc wi::int_traits<tree_node const*>::decompose(long*, unsigned int,
tree_node const*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.h:5123
0x897672
wide_int_ref_storage<false>::wide_int_ref_storage<tree_node*>(tree_node*
const&)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/wide-int.h:936
0x897630 generic_wide_int<wide_int_ref_storage<false>
>::generic_wide_int<tree_node*>(tree_node* const&)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/wide-int.h:714
0x1442950 generic_simplify_172
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:6142
0x14808ae generic_simplify_EQ_EXPR
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:22841
0x1487045 generic_simplify(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:25312
0xc10ff8 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:9138
0xc219d4 fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:12333
0x142fadd generic_simplify_46
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:2014
0x147f74a generic_simplify_EQ_EXPR
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:22441
0x1487045 generic_simplify(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/christophe.lyon/src/GCC/builds/gcc-fsf-trunk-for-crontab/obj-arm-none-eabi/gcc3/gcc/generic-match.c:25312
0xc10ff8 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:9138
0xc215cb fold(tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:11973
0x6c4ede build_new_op_1
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/cp/call.c:5730
0x6c50c6 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/cp/call.c:5803
0x87bddf build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node**, int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/cp/typeck.c:3828
0x81cdf4 cp_parser_binary_expression
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/cp/parser.c:8621
0x81d0fd cp_parser_assignment_expression
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/cp/parser.c:8742
Please submit a full bug report,


No optimization flag is needed to trigger the ICE.

GCC is configured as:
--target=arm-none-eabi --with-newlib --with-mode=arm --with-cpu=cortex-a9
--with-fpu=neon

I noticed this problem with bare-metal ARM targets (using Newlib). arm-linux
targets (using glibc) are OK.

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