https://gcc.gnu.org/g:a5541e39b3214f01a5039561a235412120682f8f
commit r17-2568-ga5541e39b3214f01a5039561a235412120682f8f Author: Jakub Jelinek <[email protected]> Date: Mon Jul 20 19:27:23 2026 +0200 passes: Make gcc buildable again with mawk <= 1.3.3 On Wed, Jul 15, 2026 at 12:49:50PM -0400, Nathan Sidwell wrote: > Fair enough, I committed this Unfortunately it seems some versions of Debian/Ubuntu use mawk instead of gawk by default, and mawk pretends to be POSIX compatible, but at least versions <= 1.3.3 didn't support POSIX character classes. We don't really need the various UTF-8 fancy blanks, and even this very own script already uses sub(/^[ \t]*/, "", arg3); elsewhere, so this patch just replaces [[:blank:]] with [ \t]. 2026-07-20 Jakub Jelinek <[email protected]> * gen-pass-instances.awk: Use [ \t] instead of [[:blank:]] for compatibility with mawk <= 1.3.3. Reviewed-by: Richard Biener <[email protected]> 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 300e3ebad5b4..1d83fc61fbfd 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; } -/^[[:blank:]]*INSERT_PASS_AFTER \(.+\)/ { +/^[ \t]*INSERT_PASS_AFTER \(.+\)/ { insert_pass($0, "INSERT_PASS_AFTER", 1); next; } -/^[[:blank:]]*INSERT_PASS_BEFORE \(.+\)/ { +/^[ \t]*INSERT_PASS_BEFORE \(.+\)/ { insert_pass($0, "INSERT_PASS_BEFORE", 0); next; } -/^[[:blank:]]*REPLACE_PASS \(.+\)/ { +/^[ \t]*REPLACE_PASS \(.+\)/ { replace_pass($0, "REPLACE_PASS"); next; }
