https://gcc.gnu.org/g:d880ed790a45cf1d9c7b7c337e9b84cebc7f0200
commit r16-6598-gd880ed790a45cf1d9c7b7c337e9b84cebc7f0200 Author: Ronan Desplanques <[email protected]> Date: Mon Nov 24 12:08:58 2025 +0100 ada: Update compiler sample output in user's guide 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. Diff: --- .../building_executable_programs_with_gnat.rst | 16 ++++++---------- gcc/ada/gnat-style.texi | 4 ++-- gcc/ada/gnat_ugn.texi | 19 ++++++------------- 3 files changed, 14 insertions(+), 25 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 b8cf7bc554a6..cee7c51cfce7 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 @@ -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 diff --git a/gcc/ada/gnat-style.texi b/gcc/ada/gnat-style.texi index 0880400bd28a..1eb1a19d6b3b 100644 --- a/gcc/ada/gnat-style.texi +++ b/gcc/ada/gnat-style.texi @@ -19,11 +19,11 @@ @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 diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index a6cbdd8c4b1b..201f013e77f9 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -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
