From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id CE4EF382F105; Mon, 14 Nov 2022 03:04:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE4EF382F105 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668395085; bh=vLNiByvX9jPrYpqD4FA1Q0lF5yrhOOYqPV/ikuKireM=; h=From:To:Subject:Date:From; b=De/0AZNaVolvC9xhLHnj9NInEI7KWee0pBNR7X1gBmS4uWv4JkgGxEPFzekLGg9g7 VaZ4FyEjX2W1P8BbCOW6WMQAuqY8rUgObAQ2srQrRIglC3Ox1MXdrQxyr0BtFdh7Kf Vv94EAGO9bpszWDSkYQEBUdu+cdDaGuxLaU5a3J0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/revert-sphinx-v2)] Partially revert 5c6546ca7d8cab1f1c129f5b55f709e2ceee0f94 X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/revert-sphinx-v2 X-Git-Oldrev: 78261057a653e4a84758126930804504f0ea87ae X-Git-Newrev: 0bd9d584fcd91797e52365199a4af100f6f247da Message-Id: <20221114030445.CE4EF382F105@sourceware.org> Date: Mon, 14 Nov 2022 03:04:45 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0bd9d584fcd91797e52365199a4af100f6f247da commit 0bd9d584fcd91797e52365199a4af100f6f247da Author: Martin Liska Date: Sun Nov 13 21:55:18 2022 +0100 Partially revert 5c6546ca7d8cab1f1c129f5b55f709e2ceee0f94 gcc/ChangeLog: * doc/gcc/gcc-command-options/options-that-control-static-analysis.rst: Revert. Diff: --- .../options-that-control-static-analysis.rst | 29 ---------------------- 1 file changed, 29 deletions(-) diff --git a/gcc/doc/gcc/gcc-command-options/options-that-control-static-analysis.rst b/gcc/doc/gcc/gcc-command-options/options-that-control-static-analysis.rst index 09bf049036f..c0e06ea5b2d 100644 --- a/gcc/doc/gcc/gcc-command-options/options-that-control-static-analysis.rst +++ b/gcc/doc/gcc/gcc-command-options/options-that-control-static-analysis.rst @@ -19,7 +19,6 @@ Options That Control Static Analysis Enabling this option effectively enables the following warnings: :option:`-Wanalyzer-allocation-size` |gol| - :option:`-Wanalyzer-deref-before-check` |gol| :option:`-Wanalyzer-double-fclose` |gol| :option:`-Wanalyzer-double-free` |gol| :option:`-Wanalyzer-exposure-through-output-file` |gol| @@ -89,33 +88,6 @@ Options That Control Static Analysis Default setting; overrides :option:`-Wno-analyzer-allocation-size`. -.. option:: -Wno-analyzer-deref-before-check - - This warning requires :option:`-fanalyzer`, which enables it; use - :option:`-Wno-analyzer-deref-before-check` - to disable it. - - This diagnostic warns for paths through the code in which a pointer - is checked for ``NULL`` *after* it has already been - dereferenced, suggesting that the pointer could have been NULL. - Such cases suggest that the check for NULL is either redundant, - or that it needs to be moved to before the pointer is dereferenced. - - This diagnostic also considers values passed to a function argument - marked with ``__attribute__((nonnull))`` as requiring a non-NULL - value, and thus will complain if such values are checked for ``NULL`` - after returning from such a function call. - - This diagnostic is unlikely to be reported when any level of optimization - is enabled, as GCC's optimization logic will typically consider such - checks for NULL as being redundant, and optimize them away before the - analyzer "sees" them. Hence optimization should be disabled when - attempting to trigger this diagnostic. - -.. option:: -Wanalyzer-deref-before-check - - Default setting; overrides :option:`-Wno-analyzer-deref-before-check`. - .. option:: -Wno-analyzer-double-fclose This warning requires :option:`-fanalyzer`, which enables it; use @@ -853,7 +825,6 @@ The following options control the analyzer. Currently, :option:`-fanalyzer-checker=taint` disables the following warnings from :option:`-fanalyzer` : - :option:`-Wanalyzer-deref-before-check` |gol| :option:`-Wanalyzer-double-fclose` |gol| :option:`-Wanalyzer-double-free` |gol| :option:`-Wanalyzer-exposure-through-output-file` |gol|