]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix formatting of version message for gnat driver
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 19 Mar 2025 17:15:29 +0000 (18:15 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 19 Mar 2025 17:18:28 +0000 (18:18 +0100)
Like the main driver (as well as gccgo, gccrs, gcov, etc) the gnat driver
prints the standard version message in response to the --version switch,
but it is not properly formatted.

gcc/ada
* gnatvsn.adb (Gnat_Free_Software): Fix message formatting.

gcc/ada/gnatvsn.adb

index 5b7b4fb1195cec23354907e02174c05e0d2f586b..58f8a1a2060a04944585a7e6735f579b3a4024ab 100644 (file)
@@ -41,10 +41,11 @@ package body Gnatvsn is
    function Gnat_Free_Software return String is
    begin
       return
-        "This is free software; see the source for copying conditions." &
+        "This is free software; see the source for copying conditions.  " &
+        "There is NO" &
         ASCII.LF &
-        "There is NO warranty; not even for MERCHANTABILITY or FITNESS" &
-        " FOR A PARTICULAR PURPOSE.";
+        "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " &
+        "PURPOSE.";
    end Gnat_Free_Software;
 
    type char_array is array (Natural range <>) of aliased Character;