From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7871) id 75318385829B; Tue, 8 Nov 2022 08:41:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75318385829B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667896896; bh=4ftsBJHlwahclMfy/kg/FO+crIxHLybnuvP138H3uAg=; h=From:To:Subject:Date:From; b=PHC3lWGvOBkatvAkfHRtTq5ZmFPsKI6xxwpvBHHe6/s8O7vLhNsV+3CDFYZVuHHE9 LNYMyYJwTog1hg8UlT91eG4hqo/YewsQWSNj1bCYciBggw13YLAsgUBMPXlCuu+2dE ApTX1ncmQ5XIP1celBxnmaLxcgBQsd093VcV4cxI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marc Poulhi?s To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3790] ada: Align -gnatwc's documentation with its behavior X-Act-Checkin: gcc X-Git-Author: Ronan Desplanques X-Git-Refname: refs/heads/master X-Git-Oldrev: f2fa41b442ae6b6ab1fbde82d31abcd986b9f1f3 X-Git-Newrev: c523e3f1ea9b451fddc4c535009b3eecffc4ac4a Message-Id: <20221108084136.75318385829B@sourceware.org> Date: Tue, 8 Nov 2022 08:41:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c523e3f1ea9b451fddc4c535009b3eecffc4ac4a commit r13-3790-gc523e3f1ea9b451fddc4c535009b3eecffc4ac4a Author: Ronan Desplanques Date: Fri Oct 14 16:28:58 2022 +0200 ada: Align -gnatwc's documentation with its behavior Shortly after the -gnatwc flag was introduced, its behavior was tweaked, but its documentation was not updated accordingly. gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst (-gnatwc): Fix flag documentation. * gnat_ugn.texi: Regenerate. Diff: --- gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst | 2 +- gcc/ada/gnat_ugn.texi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst index 31e2e31421e..87fb1087e42 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -2938,7 +2938,7 @@ of the pragma in the :title:`GNAT_Reference_manual`). tests that are known to be True or False at compile time. The default is that such warnings are not generated. Note that this warning does - not get issued for the use of boolean variables or constants whose + not get issued for the use of boolean constants whose values are known at compile time, since this is a standard technique for conditional compilation in Ada, and this would generate too many false positive warnings. diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 385f1d3deb5..7b1aaeba954 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -10925,7 +10925,7 @@ This switch activates warnings for conditional expressions used in tests that are known to be True or False at compile time. The default is that such warnings are not generated. Note that this warning does -not get issued for the use of boolean variables or constants whose +not get issued for the use of boolean constants whose values are known at compile time, since this is a standard technique for conditional compilation in Ada, and this would generate too many false positive warnings.