From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B6413861031; Mon, 20 Jul 2020 15:58:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B6413861031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595260730; bh=47IhuOlun5wu3u/qvck3mR65GRi9X9FfHkabroKwZjQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RTr9tDR+TigCO1dFjeDysLW4aVGCoUZzOUEI/w1XnQ+OoFG2bfu2XzCgYMSza97Bi 2usFKRYyLdT/I/+N4uCSVuria+lIWZNn+CZvr+k3wqjgn5BwiISvj2wKOKoSaSG4WU XcCKGKIz9+viaPOG/ns8nvztF9eDoFpZwsgeELCc= From: "josephcsible at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/96235] Segmentation fault with "-Og -fno-dce -fno-tree-dce -finline-small-functions -fipa-sra" Date: Mon, 20 Jul 2020 15:58:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: josephcsible 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: --- 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: Mon, 20 Jul 2020 15:58:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96235 Joseph C. Sible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josephcsible at gmail dot = com --- Comment #2 from Joseph C. Sible --- I can reproduce it on godbolt ("Program returned: 139"): https://godbolt.org/z/c7eYzx Here's the assembly output: main: movslq b(%rip), %rax cmpq 0, %rax cmpq $0, d(%rip) movl $0, %eax ret c: .quad 1 d: .quad 1 b: .long 1 The problem is that "cmpq 0, %rax" tries to read memory at address 0.=