From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D640385DC05; Fri, 30 Jun 2023 09:31:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D640385DC05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688117483; bh=fjYLb3bVikryOXO0AOQo4+wtY9NwhkTx9q7qecfkKs8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bTSpgolH9+1haIf2jjwP69ULOgu1AZr4bKNvD7HzY32GYhYzgrAHKOk99Kx8JP5gc UMSxqwmKAR1qqQQfpDit70XS36bRFz9kQgMNABwsoZKaB65UxV4pK8ElYG1fPwSYyd o/kyTHKHTt4H+YvDGV+JMXcEJAdyba4JY6lkQso0= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110294] [10/11 Regression] Segmentation fault with '-O3 -fno-dce -fno-toplevel-reorder -fno-tree-dce -fno-tree-pta -fno-tree-sink -ftoplevel-reorder' Date: Fri, 30 Jun 2023 09:31:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.4.1 X-Bugzilla-Keywords: needs-bisection, needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org 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: 10.5 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110294 --- Comment #4 from Xi Ruoyao --- (In reply to CTC from comment #3) > Another related and smaller reproducer: >=20 > # cat tmp.i > a; > *const b; > main() { a !=3D *b; } This is an undefined behavior and the compiler is allowed to generate code = to crash. When you use tools like cvise for reducing a "crashing" test case y= ou need to add more constraints so it won't result such an invalid test case.=