summaryrefslogtreecommitdiffstats
path: root/gcc/ada/get_scos.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-23 08:49:47 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-23 08:49:47 +0000
commiteb425ed6388471f63c1763c683d17d2729ab30e0 (patch)
tree65912726df43d818fa552dc808db711ee5f6ec1f /gcc/ada/get_scos.adb
parent3dbca0d576743f296f19099b4ad13a859c1cfb0f (diff)
downloadppe42-gcc-eb425ed6388471f63c1763c683d17d2729ab30e0.tar.gz
ppe42-gcc-eb425ed6388471f63c1763c683d17d2729ab30e0.zip
2009-07-23 Robert Dewar <dewar@adacore.com>
* get_scos.adb (Skip_EOL): Fix error of mishandling end of line after complex condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/get_scos.adb')
-rw-r--r--gcc/ada/get_scos.adb6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/get_scos.adb b/gcc/ada/get_scos.adb
index 14d4256a513..733263adb0a 100644
--- a/gcc/ada/get_scos.adb
+++ b/gcc/ada/get_scos.adb
@@ -56,7 +56,7 @@ procedure Get_SCOs is
procedure Skip_EOL;
-- Called with the current character about to be read being LF or CR. Skips
- -- past LR/CR characters until either a non-CR/LF character is found, or
+ -- past CR/LF characters until either a non-CR/LF character is found, or
-- the end of file is encountered.
procedure Skip_Spaces;
@@ -274,6 +274,7 @@ begin
while C /= CR and then C /= LF loop
if C = 'c' or else C = 't' or else C = 'f' then
Cond := C;
+ Skipc;
Get_Sloc_Range (Loc1, Loc2);
Add_SCO
(C2 => Cond,
@@ -286,6 +287,7 @@ begin
C = '&' or else
C = '|'
then
+ Skipc;
Add_SCO (C1 => C, Last => False);
elsif C = ' ' then
@@ -295,7 +297,7 @@ begin
raise Data_Error;
end if;
- C := Getc;
+ C := Nextc;
end loop;
-- Reset Last indication to True for last entry
OpenPOWER on IntegriCloud