diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-26 09:46:13 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-26 09:46:13 +0000 |
commit | 41980ad9c20a4b00e7eaf3e8468feab4198401e2 (patch) | |
tree | 2bbb3ed2891c6859df1299a5d225d0089e3a936b /gcc/ada | |
parent | b6250473dcec4daa0acfc2971c697e2d384effd6 (diff) | |
download | gcc-41980ad9c20a4b00e7eaf3e8468feab4198401e2.tar.gz |
2010-01-26 Vincent Celier <celier@adacore.com>
* switch-c.adb (Scan_Front_End_Switches): Take into account options
that follow -gnatef.
Allow -gnateG to be followed by other options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/switch-c.adb | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 2beda2988da..9c17576506a 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2010-01-26 Vincent Celier <celier@adacore.com> + + * switch-c.adb (Scan_Front_End_Switches): Take into account options + that follow -gnatef. + Allow -gnateG to be followed by other options. + 2010-01-26 Robert Dewar <dewar@adacore.com> * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb, diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb index 9ccba42377d..89b219afe80 100644 --- a/gcc/ada/switch-c.adb +++ b/gcc/ada/switch-c.adb @@ -403,15 +403,10 @@ package body Switch.C is Store_Switch := False; Ptr := Ptr + 1; Full_Path_Name_For_Brief_Errors := True; - return; -- -gnateG (save preprocessor output) when 'G' => - if Ptr < Max then - Bad_Switch (Switch_Chars); - end if; - Generate_Processed_File := True; Ptr := Ptr + 1; |