From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 633FF385841F; Tue, 16 Nov 2021 00:04:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 633FF385841F From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626 Date: Tue, 16 Nov 2021 00:04:16 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail 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: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 16 Nov 2021 00:04:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103268 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com, | |hjl.tools at gmail dot com --- Comment #2 from H.J. Lu --- A simplified test: [hjl@gnu-cfl-2 pr103268]$ cat x.c static int si; long test_types (long n) { unsigned int u2 =3D __atomic_fetch_xor (&si, 0, 5); return u2; } [hjl@gnu-cfl-2 pr103268]$ make /export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/ -O= 2 -S x.c during GIMPLE pass: fab x.c: In function =E2=80=98test_types=E2=80=99: x.c:3:1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3645 3 | test_types (long n) | ^~~~~~~~~~ 0x1515c9d optimize_atomic_bit_test_and /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-ccp.c:3645 0x151790a execute /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-ccp.c:4115 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. make: *** [Makefile:43: x.s] Error 1 [hjl@gnu-cfl-2 pr103268]$=