diff mbox series

[COMMITTED,8/9] ada: Create usage entry for -gnatw_l

Message ID 20240902082430.1863631-8-poulhies@adacore.com
State New
Headers show
Series [COMMITTED,1/9] ada: Remove repeated guards in validity checks | expand

Commit Message

Marc Poulhiès Sept. 2, 2024, 8:24 a.m. UTC
From: Viljar Indus <indus@adacore.com>

gcc/ada/

	* doc/gnat_ugn/building_executable_programs_with_gnat.rst: update
	documentation for the -gnatw_l switch.
	* usage.adb: Add -gnatw_l entry.
	* gnat_ugn.texi: Regenerate.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 .../gnat_ugn/building_executable_programs_with_gnat.rst   | 6 +++---
 gcc/ada/gnat_ugn.texi                                     | 8 ++++----
 gcc/ada/usage.adb                                         | 2 ++
 3 files changed, 9 insertions(+), 7 deletions(-)
diff mbox series

Patch

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 4576009bc52..d8501b2357d 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
@@ -3433,7 +3433,7 @@  of the pragma in the :title:`GNAT_Reference_manual`).
 .. index:: -gnatw_l  (gcc)
 
 :switch:`-gnatw_l`
-  *Activate warnings on inheritely limited types.*
+  *Activate warnings on implicitly limited types.*
 
   This switch causes the compiler trigger warnings on record types that do not
   have a limited keyword but contain a component that is a limited type.
@@ -3442,9 +3442,9 @@  of the pragma in the :title:`GNAT_Reference_manual`).
 .. index:: -gnatw_L  (gcc)
 
 :switch:`-gnatw_L`
-  *Suppress warnings on inheritely limited types.*
+  *Suppress warnings on implicitly limited types.*
 
-  This switch suppresses warnings on inheritely limited types.
+  This switch suppresses warnings on implicitly limited types.
 
 
 .. index:: -gnatwm  (gcc)
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index 375f39f8560..e59ee9f7819 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -11678,7 +11678,7 @@  This switch suppresses listing of inherited aspects.
 
 @item @code{-gnatw_l}
 
-`Activate warnings on inheritely limited types.'
+`Activate warnings on implicitly limited types.'
 
 This switch causes the compiler trigger warnings on record types that do not
 have a limited keyword but contain a component that is a limited type.
@@ -11691,9 +11691,9 @@  have a limited keyword but contain a component that is a limited type.
 
 @item @code{-gnatw_L}
 
-`Suppress warnings on inheritely limited types.'
+`Suppress warnings on implicitly limited types.'
 
-This switch suppresses warnings on inheritely limited types.
+This switch suppresses warnings on implicitly limited types.
 @end table
 
 @geindex -gnatwm (gcc)
@@ -29695,8 +29695,8 @@  to permit their use in free software.
 
 @printindex ge
 
-@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{                              }
 @anchor{d1}@w{                              }
+@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{                              }
 
 @c %**end of body
 @bye
diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb
index 5b7743703c5..38a82beb615 100644
--- a/gcc/ada/usage.adb
+++ b/gcc/ada/usage.adb
@@ -538,6 +538,8 @@  begin
    Write_Line ("        L*   turn off warnings for elaboration problems");
    Write_Line ("        .l   turn on info messages for inherited aspects");
    Write_Line ("        .L*  turn off info messages for inherited aspects");
+   Write_Line ("        _l   turn on warnings for implicitly limited types");
+   Write_Line ("        _L*  turn off warnings for implicitly limited types");
    Write_Line ("        m+   turn on warnings for variable assigned " &
                                                   "but not read");
    Write_Line ("        M*   turn off warnings for variable assigned " &