summaryrefslogtreecommitdiff
path: root/gcc/ada/mlib-utl.adb
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-30 00:35:18 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-30 00:35:18 +0000
commit4e1acd2236ff3e5cfd76f0fa4d122f0125f015d2 (patch)
tree198706d5bf96ec605028f16bfcbbdaf4328e34b5 /gcc/ada/mlib-utl.adb
parentccc0785b9daf6c7e288731436607bb0fe5078dd2 (diff)
downloadgcc-4e1acd2236ff3e5cfd76f0fa4d122f0125f015d2.tar.gz
Merged trunk at revision 161574 into branch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/ifunc@161575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/mlib-utl.adb')
-rw-r--r--gcc/ada/mlib-utl.adb31
1 files changed, 27 insertions, 4 deletions
diff --git a/gcc/ada/mlib-utl.adb b/gcc/ada/mlib-utl.adb
index 78378a673b9..67e03097ed6 100644
--- a/gcc/ada/mlib-utl.adb
+++ b/gcc/ada/mlib-utl.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2008, AdaCore --
+-- Copyright (C) 2002-2010, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -460,11 +460,25 @@ package body MLib.Utl is
end loop;
if not Opt.Quiet_Output then
- Write_Str (Driver.all);
+ if Opt.Verbose_Mode then
+ Write_Str (Driver.all);
+
+ elsif Driver_Name /= No_Name then
+ Write_Str (Get_Name_String (Driver_Name));
+
+ else
+ Write_Str (Gcc_Name.all);
+ end if;
for J in 1 .. A loop
- Write_Char (' ');
- Write_Str (Arguments (J).all);
+ if Opt.Verbose_Mode or else J < 4 then
+ Write_Char (' ');
+ Write_Str (Arguments (J).all);
+
+ else
+ Write_Str (" ...");
+ exit;
+ end if;
end loop;
-- Do not display all the object files if not in verbose mode, only
@@ -480,10 +494,19 @@ package body MLib.Utl is
elsif Position = Second then
Write_Str (" ...");
Position := Last;
+ exit;
end if;
end loop;
for J in Options_2'Range loop
+ if not Opt.Verbose_Mode then
+ if Position = Second then
+ Write_Str (" ...");
+ end if;
+
+ exit;
+ end if;
+
Write_Char (' ');
Write_Str (Options_2 (J).all);
end loop;