From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B7C1385781D; Tue, 30 Mar 2021 07:19:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7C1385781D From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99824] [10 Regression] ICE in wide_int_to_tree_1, at tree.c:1572 Date: Tue, 30 Mar 2021 07:19:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2021 07:19:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99824 --- Comment #2 from Martin Li=C5=A1ka --- valgrind tells: =3D=3D2489=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D2489=3D=3D at 0xCFBD22: wi::force_to_size(long*, long const*, unsi= gned int, unsigned int, unsigned int, signop) (wide-int.cc:370) =3D=3D2489=3D=3D by 0xCB2CD3: from (wide-int.h:1172) =3D=3D2489=3D=3D by 0xCB2CD3: wide_int_to_tree_1(tree_node*, generic_wide_int > const&) (tree.c:1515) =3D=3D2489=3D=3D by 0xA59AC3: set_min_and_max_values_for_integral_type(t= ree_node*, int, signop) [clone .part.0] (stor-layout.c:2822) =3D=3D2489=3D=3D by 0xA5E766: set_min_and_max_values_for_integral_type (stor-layout.c:2816) =3D=3D2489=3D=3D by 0xA5E766: fixup_signed_type(tree_node*) (stor-layout= .c:2834) =3D=3D2489=3D=3D by 0xCB079E: build_nonstandard_integer_type(unsigned lo= ng, int) (tree.c:8020) =3D=3D2489=3D=3D by 0xBD6245: vn_reference_lookup_3(ao_ref*, tree_node*,= void*, translate_flags*) (tree-ssa-sccvn.c:2890) =3D=3D2489=3D=3D by 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*) (tree-ssa-alias.c:3691) =3D=3D2489=3D=3D by 0xBD124F: vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind, vn_reference_s**, bool, tree_node**, tree_node*) (tree-ssa-sccvn.c:3545) =3D=3D2489=3D=3D by 0xBD6E8E: visit_reference_op_load (tree-ssa-sccvn.c:= 4934) =3D=3D2489=3D=3D by 0xBD6E8E: visit_stmt(gimple*, bool) [clone .isra.0] (tree-ssa-sccvn.c:5374) =3D=3D2489=3D=3D by 0xBD7B96: process_bb(rpo_elim&, basic_block_def*, bo= ol, bool, bool, bool, bool, bitmap_head*, bool) [clone .constprop.0] (tree-ssa-sccvn.c:7047) =3D=3D2489=3D=3D by 0xBD9A3E: do_rpo_vn(function*, edge_def*, bitmap_hea= d*, bool, bool) (tree-ssa-sccvn.c:7566) =3D=3D2489=3D=3D by 0xBDA300: (anonymous namespace)::pass_fre::execute(f= unction*) (tree-ssa-sccvn.c:7834) #0 fancy_abort (file=3Dfile@entry=3D0x148dfb8 "/home/marxin/Programming/gcc2/gcc/tree.c", line=3Dline@entry=3D1572, function=3Dfunction@entry=3D0x148cba0 "wide_int_to_tree_1") at /home/marxin/Programming/gcc2/gcc/diagnostic.c:1778 #1 0x00000000005e2781 in wide_int_to_tree_1 (type=3D, pcst=3D...) at /home/marxin/Programming/gcc2/gcc/tree.c:1572 #2 0x0000000000a59ac4 in set_min_and_max_values_for_integral_type (type=3D, type@entry=3D, precision=3D6, sgn=3Dsgn@entry=3DSIGNED) at /home/marxin/Programming/gcc2/gcc/poly-int.h:671 #3 0x0000000000a5e767 in set_min_and_max_values_for_integral_type (sgn=3DS= IGNED, precision=3D, type=3D) at /home/marxin/Programming/gcc2/gcc/stor-layout.c:2816 #4 fixup_signed_type (type=3D) at /home/marxin/Programming/gcc2/gcc/stor-layout.c:2834 #5 0x0000000000cb079f in build_nonstandard_integer_type (precision=3Dprecision@entry=3D384, unsignedp=3D0) at /home/marxin/Programming/gcc2/gcc/tree.c:8020 #6 0x0000000000bd6246 in vn_reference_lookup_3 (ref=3Dref@entry=3D0x7fffff= ffd760, vuse=3Dvuse@entry=3D, data_=3Ddata_@entry=3D0x7fffffffd7f0, disambiguate_only=3Ddisambiguate_only@entry=3D0x7fffffffd694) at /home/marxin/Programming/gcc2/gcc/tree-ssa-sccvn.c:2890 It's called for a string constant: (gdb) p debug_tree((tree)0x7fffffffd410) $1 =3D void=