diff options
Diffstat (limited to 'gcc/opth-gen.awk')
-rw-r--r-- | gcc/opth-gen.awk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk index 677225e..4588a53 100644 --- a/gcc/opth-gen.awk +++ b/gcc/opth-gen.awk @@ -86,13 +86,17 @@ for (i = 0; i < n_extra_vars; i++) { orig_var = var name = var type = var + type_after = var sub("^.*[ *]", "", name) + sub("\\[.*\\]$", "", name) + sub("\\[.*\\]$", "", type) sub(" *" name "$", "", type) + sub("^.*" name, "", type_after) var_seen[name] = 1 print "#ifdef GENERATOR_FILE" print "extern " orig_var ";" print "#else" - print " " type " x_" name ";" + print " " type " x_" name type_after ";" print "#define " name " global_options.x_" name print "#endif" } |