From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A1C53858D1E; Thu, 20 Oct 2022 23:28:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A1C53858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666308520; bh=O/5FUTREgdvrf7VTLNjOFvYEYzzzk5nfTMQnudVVmnc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YIy638DtI9ykHhTargOredyGDxOmY3DBooXrhBwNRhUD838lYsAMGUWtxJLOXIGZg OKO+J2v93GOw0tr9oRpGTvikLvHZKXtDm86D2r516+IkYVto0dFA+F4GDi3S6kaG+W wlUUQgpA0c6Epx4rYGX4CbvRMMx66Ka56CMUOuE0= From: "andrew at ishiboo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107336] [10 regression] ICE segfault expand_expr_real_1 on sparc-sun-solaris2.11 with -m32 -mcpu=niagara4 -O3 Date: Thu, 20 Oct 2022 23:28:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew at ishiboo dot com X-Bugzilla-Status: UNCONFIRMED 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: resolution bug_status short_desc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107336 Andrew Paprocki changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|DUPLICATE |--- Status|RESOLVED |UNCONFIRMED Summary|[10/11 regression] ICE |[10 regression] ICE |segfault expand_expr_real_1 |segfault expand_expr_real_1 |on sparc-sun-solaris2.11 |on sparc-sun-solaris2.11 |with -m32 -mcpu=3Dniagara4 |with -m32 -mcpu=3Dniagar= a4 |-O3 |-O3 --- Comment #4 from Andrew Paprocki --- Changed to reflect this is just an issue with GCC 10 at this point. I built HEAD of the releases/gcc-10 branch and it still segfaults here with using attached test case: during RTL pass: expand In file included from /usr/lib/gcc-10.4/include/c++/10.4.1/random:51, from output_test_helper-10.cc:7: /usr/lib/gcc-10.4/include/c++/10.4.1/bits/random.tcc: In member function 'void std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>::_M_gen_rand() [with _UIntType =3D unsig= ned int; unsigned int __w =3D 32; unsigned int __n =3D 624; unsigned int __m = =3D 397; unsigned int __r =3D 31; _UIntType __a =3D 2567483615; unsigned int __u =3D= 11; _UIntType __d =3D 4294967295; unsigned int __s =3D 7; _UIntType __b =3D 263= 6928640; unsigned int __t =3D 15; _UIntType __c =3D 4022730752; unsigned int __l =3D= 18; _UIntType __f =3D 1812433253]': /usr/lib/gcc-10.4/include/c++/10.4.1/bits/random.tcc:405:14: internal compiler error: Segmentation Fault 0x162a903 crash_signal ../../gcc/toplev.c:328 0x103ceac expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10078 0x1035423 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:8366 0x102a2c3 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/expr.c:5757 0x1029077 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.c:5516 0xe3746b expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3784 0xe37993 expand_gimple_stmt ../../gcc/cfgexpand.c:3880 0xe40a8b expand_gimple_basic_block ../../gcc/cfgexpand.c:5929 0xe42a97 execute ../../gcc/cfgexpand.c:6584 I can confirm that the patch in the above linked bug does fix GCC 11.3.0.=