diff options
author | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 17:58:53 +0000 |
---|---|---|
committer | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 17:58:53 +0000 |
commit | ca40ed4b7391a303e3cee292e5e6fb65ac99933a (patch) | |
tree | e230e56a44ee4e614522f930110bcf311d7b7dd6 /gcc/optc-gen.awk | |
parent | 09a175857d1d874775dcd00100214ece4945d9bb (diff) | |
download | gcc-ca40ed4b7391a303e3cee292e5e6fb65ac99933a.tar.gz |
Fix PR bootstrap/35855: awk character classes.
gcc/:
PR bootstrap/35855
* opt-functions.awk (BEGIN): New section.
(lower, upper, digit, alnum): New variables.
(static_var, opt_sanitized_name): Use alnum instead of character
classes, for non-C locale.
* optc-gen.awk: Likewise.
* opth-gen.awk: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r-- | gcc/optc-gen.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index ba2238aeebf..fbe8007c8a2 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -145,7 +145,7 @@ print "" print "const char * const lang_names[] =\n{" for (i = 0; i < n_langs; i++) { macros[i] = "CL_" langs[i] - gsub( "[^A-Za-z0-9_]", "X", macros[i] ) + gsub( "[^" alnum "_]", "X", macros[i] ) s = substr(" ", length (macros[i])) print " " quote langs[i] quote "," } |