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.

Tested on x86-64/Linux, applied on the mainline.


2025-03-19  Eric Botcazou  <ebotca...@adacore.com>

        * gnatvsn.adb (Gnat_Free_Software): Fix message formatting.

-- 
Eric Botcazou
diff --git a/gcc/ada/gnatvsn.adb b/gcc/ada/gnatvsn.adb
index 5b7b4fb1195..58f8a1a2060 100644
--- a/gcc/ada/gnatvsn.adb
+++ b/gcc/ada/gnatvsn.adb
@@ -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;

Reply via email to