]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix documentation on Junk names
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 23 Oct 2025 13:32:15 +0000 (15:32 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 13 Nov 2025 15:26:58 +0000 (16:26 +0100)
After the last change on the list of junk names, the documentation was
not modified.

gcc/ada/ChangeLog:

* doc/gnat_rm/implementation_defined_pragmas.rst: Update
the list of junk names.
* doc/gnat_ugn/building_executable_programs_with_gnat.rst:
Likewise.
* gnat_rm.texi: Regenerate.
* gnat_ugn.texi: Regenerate.

gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst
gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat_rm.texi
gcc/ada/gnat_ugn.texi

index c5f4abc780c7bd2d0d52a11085cdcf236c6b24a1..fe52317fb673d0ab4e057870b4eba78202aa1a6c 100644 (file)
@@ -7343,7 +7343,7 @@ units and unreferenced entities within these units.
 
 For the variable case, warnings are never given for unreferenced variables
 whose name contains one of the substrings
-``DISCARD, DUMMY, IGNORE, JUNK, UNUSED`` in any casing. Such names
+``DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP`` in any casing. Such names
 are typically to be used in cases where such warnings are expected.
 Thus it is never necessary to use ``pragma Unreferenced`` for such
 variables, though it is harmless to do so.
@@ -7476,7 +7476,7 @@ that it might be.
 
 For the variable case, warnings are never given for unreferenced
 variables whose name contains one of the substrings
-``DISCARD, DUMMY, IGNORE, JUNK, UNUSED`` in any casing. Such names
+``DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP`` in any casing. Such names
 are typically to be used in cases where such warnings are expected.
 Thus it is never necessary to use ``pragma Unused`` for such
 variables, though it is harmless to do so.
index 9893c5b77276b9fac39ec22a1525a5e18fb44c12..703607d2849314e54cefadd829f5f57bae1b69e9 100644 (file)
@@ -2740,9 +2740,9 @@ of the kinds of warnings that are generated.
 
 * Unreferenced or unmodified variables. Note that a special
   exemption applies to variables which contain any of the substrings
-  ``DISCARD, DUMMY, IGNORE, JUNK, UNUSED``, in any casing. Such variables
-  are considered likely to be intentionally used in a situation where
-  otherwise a warning would be given, so warnings of this kind are
+  ``DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP`` in any casing. Such
+  variables are considered likely to be intentionally used in a situation
+  where otherwise a warning would be given, so warnings of this kind are
   always suppressed for such variables.
 
 * Address overlays that could clobber memory
index 30dba8215a4cfed553e82c771c9238be1df4e635..112ad1394f29735d98e114e565090dc06ea1c486 100644 (file)
@@ -8974,7 +8974,7 @@ units and unreferenced entities within these units.
 
 For the variable case, warnings are never given for unreferenced variables
 whose name contains one of the substrings
-@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSED} in any casing. Such names
+@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP} in any casing. Such names
 are typically to be used in cases where such warnings are expected.
 Thus it is never necessary to use @code{pragma Unreferenced} for such
 variables, though it is harmless to do so.
@@ -9105,7 +9105,7 @@ that it might be.
 
 For the variable case, warnings are never given for unreferenced
 variables whose name contains one of the substrings
-@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSED} in any casing. Such names
+@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP} in any casing. Such names
 are typically to be used in cases where such warnings are expected.
 Thus it is never necessary to use @code{pragma Unused} for such
 variables, though it is harmless to do so.
index 478975739f12a6df5d412a89a11a6267af694252..97571bfb428c3123ce3c9a8224d849bb12ac2e02 100644 (file)
@@ -19,7 +19,7 @@
 
 @copying
 @quotation
-GNAT User's Guide for Native Platforms , Oct 31, 2025
+GNAT User's Guide for Native Platforms , Nov 13, 2025
 
 AdaCore
 
@@ -10788,9 +10788,9 @@ Values known to be out of range at compile time
 @item 
 Unreferenced or unmodified variables. Note that a special
 exemption applies to variables which contain any of the substrings
-@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSED}, in any casing. Such variables
-are considered likely to be intentionally used in a situation where
-otherwise a warning would be given, so warnings of this kind are
+@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP} in any casing. Such
+variables are considered likely to be intentionally used in a situation
+where otherwise a warning would be given, so warnings of this kind are
 always suppressed for such variables.
 
 @item 
@@ -30333,8 +30333,8 @@ to permit their use in free software.
 
 @printindex ge
 
-@anchor{d2}@w{                              }
 @anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{                              }
+@anchor{d2}@w{                              }
 
 @c %**end of body
 @bye