]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Update compiler sample output in user's guide
authorRonan Desplanques <desplanques@adacore.com>
Mon, 24 Nov 2025 11:08:58 +0000 (12:08 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:11 +0000 (11:57 +0100)
The error messages displayed in the modified example were changed in
GNAT a while ago, but the example itself had not been updated.

This patch also tweaks the reStructuredText markup in the example.

gcc/ada/ChangeLog:

* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update
example.
* gnat-style.texi: Regenerate.
* gnat_ugn.texi: Regenerate.

gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat-style.texi
gcc/ada/gnat_ugn.texi

index b8cf7bc554a6ddf0130a3ff36a9ccba8072099fb..cee7c51cfce771a9028ad333d1a54696baecabe9 100644 (file)
@@ -957,22 +957,18 @@ compiled.
 .. index:: cannot generate code
 
 If you attempt to compile any of these files, you will get one of the
-following error messages (where ``fff`` is the name of the file you
+following error messages (where :file:`fff` is the name of the file you
 compiled):
 
-  ::
+.. code-block:: text
 
-    cannot generate code for file ``fff`` (package spec)
-    to check package spec, use -gnatc
+   cannot generate code for file fff (package spec)
 
-    cannot generate code for file ``fff`` (missing subunits)
-    to check parent unit, use -gnatc
+   cannot generate code for file fff (missing subunits)
 
-    cannot generate code for file ``fff`` (subprogram spec)
-    to check subprogram spec, use -gnatc
+   cannot generate code for file fff (subprogram spec)
 
-    cannot generate code for file ``fff`` (subunit)
-    to check subunit, use -gnatc
+   cannot generate code for file fff (subunit)
 
 
 As indicated by the above error messages, if you want to submit
index 0880400bd28aceaa32c5ae4330c67296624f0589..1eb1a19d6b3b1230f03e421765efe45249aef3bc 100644 (file)
 
 @copying
 @quotation
-GNAT Coding Style: A Guide for GNAT Developers , Jun 02, 2025
+GNAT Coding Style: A Guide for GNAT Developers , Jan 09, 2026
 
 AdaCore
 
-Copyright @copyright{} 2008-2025, Free Software Foundation
+Copyright @copyright{} 2008-2026, Free Software Foundation
 @end quotation
 
 @end copying
index a6cbdd8c4b1b9c4cea9dce1d7c385c6ca1b515f3..201f013e77f90e2f8d2856cdbda807fbd8bf8c76 100644 (file)
@@ -19,7 +19,7 @@
 
 @copying
 @quotation
-GNAT User's Guide for Native Platforms , Dec 05, 2025
+GNAT User's Guide for Native Platforms , Jan 09, 2026
 
 AdaCore
 
@@ -8315,22 +8315,15 @@ If you attempt to compile any of these files, you will get one of the
 following error messages (where @code{fff} is the name of the file you
 compiled):
 
-@quotation
-
 @example
-cannot generate code for file `@w{`}fff`@w{`} (package spec)
-to check package spec, use -gnatc
+cannot generate code for file fff (package spec)
 
-cannot generate code for file `@w{`}fff`@w{`} (missing subunits)
-to check parent unit, use -gnatc
+cannot generate code for file fff (missing subunits)
 
-cannot generate code for file `@w{`}fff`@w{`} (subprogram spec)
-to check subprogram spec, use -gnatc
+cannot generate code for file fff (subprogram spec)
 
-cannot generate code for file `@w{`}fff`@w{`} (subunit)
-to check subunit, use -gnatc
+cannot generate code for file fff (subunit)
 @end example
-@end quotation
 
 As indicated by the above error messages, if you want to submit
 one of these files to the compiler to check for correct semantics
@@ -30270,8 +30263,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