From: Ronan Desplanques <desplanq...@adacore.com>

Before this patch, gnatmake's parser for adc files failed to ignore
semicolons located inside comments. This patch fixes that behavior.

gcc/ada/

        * sfn_scan.adb (Scan_SFN_Pragmas): Improve handling of comments.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/sfn_scan.adb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/sfn_scan.adb b/gcc/ada/sfn_scan.adb
index b428ed7f0cf..8ee9a0968f3 100644
--- a/gcc/ada/sfn_scan.adb
+++ b/gcc/ada/sfn_scan.adb
@@ -583,6 +583,7 @@ package body SFN_Scan is
 
          else
             Skip_Loop : loop
+               Skip_WS;
                exit Main_Scan_Loop when At_EOF;
                exit Skip_Loop when S (P) = ';';
 
-- 
2.34.1

Reply via email to