From 48664302decc24cfeebf28b477083773a6fdd5fe Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Wed, 5 May 2004 15:47:50 +0200 Subject: [PATCH] osint.adb (Find_Program_Name): Fix handling of VMS version number. * osint.adb (Find_Program_Name): Fix handling of VMS version number. From-SVN: r81527 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/osint.adb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 19d4b15b1f7..c1531aa9093 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2004-05-05 Arnaud Charlet + + * osint.adb (Find_Program_Name): Fix handling of VMS version + number. + 2004-05-05 Emmanuel Briot * g-os_lib.ads (Invalid_Time): New constant diff --git a/gcc/ada/osint.adb b/gcc/ada/osint.adb index 7ca5fca77e5..0e83dbb7d06 100644 --- a/gcc/ada/osint.adb +++ b/gcc/ada/osint.adb @@ -1030,12 +1030,12 @@ package body Osint is if Command_Name (Cindex2) in '0' .. '9' then for J in reverse Cindex1 .. Cindex2 loop - exit when Command_Name (J) not in '0' .. '9'; - if Command_Name (J) = '.' or Command_Name (J) = ';' then Cindex2 := J - 1; exit; end if; + + exit when Command_Name (J) not in '0' .. '9'; end loop; end if; -- 2.30.2