]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
prep.adb (Preprocess): Ignore error when scanning the first token of a line.
authorVincent Celier <celier@adacore.com>
Thu, 16 Jun 2005 08:44:11 +0000 (10:44 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Jun 2005 08:44:11 +0000 (10:44 +0200)
2005-06-14  Vincent Celier  <celier@adacore.com>

* prep.adb (Preprocess): Ignore error when scanning the first token of
a line.

From-SVN: r101052

gcc/ada/prep.adb

index 6b9000c7a0ce47989e4baaf87a06e8a11fb5b57f..5b2435735ed7529ab1bac67aa77ad05359ed78ce 100644 (file)
@@ -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;"