diff options
author | Vincent Celier <celier@adacore.com> | 2005-06-16 10:44:11 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2005-06-16 10:44:11 +0200 |
commit | 474e8cbe94811f01d079516efa6c49da18dbbe8c (patch) | |
tree | d53ada25daf16f4399b6bb867bfd9ccde9bd2aaa /gcc/ada/prep.adb | |
parent | f073e741c926e8f2c664fe6b8dee147593f5e7fe (diff) | |
download | gcc-474e8cbe94811f01d079516efa6c49da18dbbe8c.zip gcc-474e8cbe94811f01d079516efa6c49da18dbbe8c.tar.gz gcc-474e8cbe94811f01d079516efa6c49da18dbbe8c.tar.bz2 |
prep.adb (Preprocess): Ignore error when scanning the first token of a line.
2005-06-14 Vincent Celier <celier@adacore.com>
* prep.adb (Preprocess): Ignore error when scanning the first token of
a line.
From-SVN: r101052
Diffstat (limited to 'gcc/ada/prep.adb')
-rw-r--r-- | gcc/ada/prep.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/prep.adb b/gcc/ada/prep.adb index 6b9000c..5b24357 100644 --- a/gcc/ada/prep.adb +++ b/gcc/ada/prep.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2002-2003, Free Software Foundation, Inc. -- +-- Copyright (C) 2002-2005, Free Software Foundation, Inc. -- -- -- -- 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- -- @@ -1081,7 +1081,9 @@ package body Prep is -- If the token is EOF, the scan ponter will not move, and the token -- will still be EOF. + Set_Ignore_Errors (To => True); Scan.all; + Set_Ignore_Errors (To => False); end loop Input_Line_Loop; -- Report an error for any missing some "#end if;" |