From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9CBE8385703D; Mon, 10 Aug 2020 13:04:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CBE8385703D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597064688; bh=0vip+uaR2M+BFvtvw/CDHzIeD/Zqx56OA+w31iYySfY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o6e7AQ9P4ucLanDmj/5Yb0jw0kxFot9JdVV6+/P13rheVMo76JyzrAVd1wUUy2HLV B6fg6EPfFN1OzNPl95/fscDJFfCwXE7/ppR0DTKUsSqHW00vck3hK6VjzDPuyGr70J iVz/4jHhJiKuUWgWTcoFxSQc9kyjBYUIqAnMOL48= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96550] gcc is smart in figuring out a non-returning function. Date: Mon, 10 Aug 2020 13:04:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: Mon, 10 Aug 2020 13:04:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96550 --- Comment #14 from Jonathan Wakely --- (In reply to Roger Wolff from comment #11) > Just FYI: I added -Wnull-dereference to my makefile of my real project. = It > doesn't trigger a warning in my project when I revert to the buggy code. = The > compiler does detect and act upon the null dereference. It will only warn when optimisations are performed, including the -fdelete-null-pointer-checks optimisation. I would expect it to either not = act on the null dereference, or act and warn. Please don't change status to FIXED when nothing was changed in GCC, let al= one fixed.=