public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5358] [Ada] Merge duplicated processing for gnatmake -u and -U switches
@ 2020-11-25 13:29 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2020-11-25 13:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ea89e1c31ec9c5fa68d6d963e7b40fca155377fd

commit r11-5358-gea89e1c31ec9c5fa68d6d963e7b40fca155377fd
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Oct 14 23:43:21 2020 +0200

    [Ada] Merge duplicated processing for gnatmake -u and -U switches
    
    gcc/ada/
    
            * make.adb (Scan_Make_Arg): Merge ELSIF branches for -u and -U.

Diff:
---
 gcc/ada/make.adb | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 0034d1ad052..1288875b777 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -4697,19 +4697,9 @@ package body Make is
             pragma Assert (Argv'Last = 2);
             Minimal_Recompilation := True;
 
-         --  -u
+         --  -u and -U (they are differentiated elsewhere)
 
-         elsif Argv (2) = 'u' and then Argv'Last = 2 then
-            Unique_Compile := True;
-            Compile_Only   := True;
-            Do_Bind_Step   := False;
-            Do_Link_Step   := False;
-
-         --  -U
-
-         elsif Argv (2) = 'U'
-           and then Argv'Last = 2
-         then
+         elsif Argv (2) in 'u' | 'U' and then Argv'Last = 2 then
             Unique_Compile := True;
             Compile_Only   := True;
             Do_Bind_Step   := False;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-25 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 13:29 [gcc r11-5358] [Ada] Merge duplicated processing for gnatmake -u and -U switches 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).