https://gcc.gnu.org/g:447d00e84f9f1b166e1ceaae831d3b14533be661

commit r17-2422-g447d00e84f9f1b166e1ceaae831d3b14533be661
Author: Nathan Sidwell <[email protected]>
Date:   Mon Jul 13 09:21:45 2026 -0400

    Robustify awk pass generation
    
            gcc/
            * gen-pass-instances.awk: Require only white-space before
            macro invocations.

Diff:
---
 gcc/gen-pass-instances.awk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk
index 66484e8c563d..300e3ebad5b4 100644
--- a/gcc/gen-pass-instances.awk
+++ b/gcc/gen-pass-instances.awk
@@ -167,17 +167,17 @@ function replace_pass(line, fnname,                       
num, i)
   lines[num] = new_line;
 }
 
-/INSERT_PASS_AFTER \(.+\)/ {
+/^[[:blank:]]*INSERT_PASS_AFTER \(.+\)/ {
   insert_pass($0, "INSERT_PASS_AFTER", 1);
   next;
 }
 
-/INSERT_PASS_BEFORE \(.+\)/ {
+/^[[:blank:]]*INSERT_PASS_BEFORE \(.+\)/ {
   insert_pass($0, "INSERT_PASS_BEFORE", 0);
   next;
 }
 
-/REPLACE_PASS \(.+\)/ {
+/^[[:blank:]]*REPLACE_PASS \(.+\)/ {
   replace_pass($0, "REPLACE_PASS");
   next;
 }

Reply via email to