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

            Bug ID: 99824
           Summary: ICE in wide_int_to_tree_1, at tree.c:1572
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Created attachment 50484
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50484&action=edit
ltrans object file

The following happens for the current gcc-10 branch when building Linux kernel
with LTO.

$ ./lto1 vmlinux.o.ltrans720.o -fltrans -quiet
during GIMPLE pass: fre
../../../../home/marxin/Programming/linux-misc/drivers/media/pci/cx18/cx18-i2c.c:
In function ‘init_cx18_i2c’:
../../../../home/marxin/Programming/linux-misc/drivers/media/pci/cx18/cx18-i2c.c:217:
internal compiler error: in wide_int_to_tree_1, at tree.c:1572
  217 | int init_cx18_i2c(struct cx18 *cx)
      | 
0x5e2780 wide_int_to_tree_1
        /home/marxin/Programming/gcc2/gcc/tree.c:1572
0xa59ac3 set_min_and_max_values_for_integral_type(tree_node*, int, signop)
        /home/marxin/Programming/gcc2/gcc/stor-layout.c:2822
0xa5e766 set_min_and_max_values_for_integral_type(tree_node*, int, signop)
        /home/marxin/Programming/gcc2/gcc/stor-layout.c:2816
0xa5e766 fixup_signed_type(tree_node*)
        /home/marxin/Programming/gcc2/gcc/stor-layout.c:2834
0xcb07ae build_nonstandard_integer_type(unsigned long, int)
        /home/marxin/Programming/gcc2/gcc/tree.c:8020
0xbd6245 vn_reference_lookup_3
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:2890
0xb32522 walk_non_aliased_vuses(ao_ref*, tree_node*, bool, void* (*)(ao_ref*,
tree_node*, void*), void* (*)(ao_ref*, tree_node*, void*, translate_flags*),
tree_node* (*)(tree_node*), unsigned int&, void*)
        /home/marxin/Programming/gcc2/gcc/tree-ssa-alias.c:3691
0xbd124f vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind,
vn_reference_s**, bool, tree_node**, tree_node*)
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:3545
0xbd6e8e visit_reference_op_load
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:4934
0xbd6e8e visit_stmt
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:5374
0xbd7b96 process_bb
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:7047
0xbd9a3e do_rpo_vn
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:7566
0xbda300 execute
        /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:7834
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to