diff options
Diffstat (limited to 'gcc/ada/s-regpat.adb')
-rw-r--r-- | gcc/ada/s-regpat.adb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/ada/s-regpat.adb b/gcc/ada/s-regpat.adb index f27639b..9ea4e36 100644 --- a/gcc/ada/s-regpat.adb +++ b/gcc/ada/s-regpat.adb @@ -7,7 +7,7 @@ -- B o d y -- -- -- -- Copyright (C) 1986 by University of Toronto. -- --- Copyright (C) 1999-2016, AdaCore -- +-- Copyright (C) 1999-2017, AdaCore -- -- -- -- 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- -- @@ -1634,11 +1634,9 @@ package body System.Regpat is Case_Emit (C); end case; - exit Parse_Loop when Emit_Ptr - Length_Ptr = 254; - Parse_Pos := Parse_Pos + 1; - - exit Parse_Loop when Parse_Pos > Parse_End; + exit Parse_Loop when Parse_Pos > Parse_End + or else Emit_Ptr - Length_Ptr = 254; end loop Parse_Loop; -- Is the string followed by a '*+?{' operator ? If yes, and if there |