diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 09:59:04 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 09:59:04 +0000 |
commit | 135f9e61bacfd8c0adae3ca32dab052df2199460 (patch) | |
tree | 2bfeaf0cb4819de89895812de7594e289b3cdb52 /gcc/ada/make.adb | |
parent | 7183c9a219d9afd9fb960dc4a722020374e5dfaf (diff) | |
download | gcc-135f9e61bacfd8c0adae3ca32dab052df2199460.tar.gz |
2009-08-17 Robert Dewar <dewar@adacore.com>
* make.adb: Add ??? comment.
Code clean up.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r-- | gcc/ada/make.adb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb index 60235328b44..59d794cc884 100644 --- a/gcc/ada/make.adb +++ b/gcc/ada/make.adb @@ -7318,6 +7318,9 @@ package body Make is begin pragma Assert (N_M_Switch > 0 and RTS_Specified = null); + -- This loop needs commenting ??? In fact this entire body is + -- under-commented ??? And the spec is not much help :-( + for Next_Arg in 1 .. Argument_Count loop declare Argv : constant String := Argument (Next_Arg); @@ -7326,6 +7329,9 @@ package body Make is and then Argv (1) = '-' and then Argv (2) = 'm' and then Argv /= "-margs" + + -- Ignore -mieee to avoid spawning an extra gcc in this case + and then Argv /= "-mieee" then Arg_Index := Arg_Index + 1; @@ -7370,8 +7376,8 @@ package body Make is Close (Output_FD); Delete_File (Output_Name.all, Success); - for I in reverse 1 .. N_Read loop - if Line (I) = ASCII.CR or Line (I) = ASCII.LF then + for J in reverse 1 .. N_Read loop + if Line (J) = ASCII.CR or else Line (J) = ASCII.LF then N_Read := N_Read - 1; else exit; |