public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6459] [Ada] PR ada/79724
@ 2022-01-11 13:27 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-01-11 13:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7aa3800216ea991050ec904a28c628cd7799021b
commit r12-6459-g7aa3800216ea991050ec904a28c628cd7799021b
Author: Arnaud Charlet <charlet@adacore.com>
Date: Mon Jan 3 10:51:07 2022 +0000
[Ada] PR ada/79724
gcc/ada/
PR ada/79724
* osint.adb (Program_Name): Fix handling of suffixes.
Diff:
---
gcc/ada/osint.adb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/gcc/ada/osint.adb b/gcc/ada/osint.adb
index d96fdf428ed..3ac4fd582c5 100644
--- a/gcc/ada/osint.adb
+++ b/gcc/ada/osint.adb
@@ -2279,8 +2279,6 @@ package body Osint is
Find_Program_Name;
- Start_Of_Suffix := Name_Len + 1;
-
-- Find the target prefix if any, for the cross compilation case.
-- For instance in "powerpc-elf-gcc" the target prefix is
-- "powerpc-elf-"
@@ -2304,9 +2302,7 @@ package body Osint is
end if;
end loop;
- if End_Of_Prefix > 1 then
- Start_Of_Suffix := End_Of_Prefix + Prog'Length + 1;
- end if;
+ Start_Of_Suffix := End_Of_Prefix + Prog'Length + 1;
-- Create the new program name
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-11 13:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 13:27 [gcc r12-6459] [Ada] PR ada/79724 Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).