Ada: Stop adding .EXE to GNAT.Command_Line error messages.
GNAT no longer adds the .EXE suffix to command-line error messages to avoid testsuite differences.
The GNAT.Command_Line output included a .EXE suffix on Windows, which caused differences in testsuite results across platforms. This commit removes the hardcoded suffix and uses a platform-specific routine to strip it, ensuring consistent testsuite behavior regardless of the operating system.
In Details
GNAT.Command_Line outputs messages related to command-line arguments. This patch modifies g-comlin.adb to remove the .EXE suffix from these messages. The change involves introducing a new Command_Name routine and adjusting Display_Help, Get_Opt, and Try_Help to use it. This is specific to the Ada runtime library.
For Context
The GNAT toolchain is the Ada compiler included in GCC. When GNAT encounters an error related to command-line arguments (e.g. invalid options), it prints an error message to the console. On Windows, these messages had a .EXE suffix. This change makes the error messages consistent across operating systems, which simplifies testing and reduces noise in cross-platform builds.