diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-11-13 13:40:37 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-11-13 13:40:37 +0000 |
commit | 6275791a9f72b31e9e55581fe85eb5dbeb08402e (patch) | |
tree | 42bab66b8de41d997d4e5984568a80f882dcf6d1 | |
parent | 9ba9f4c015030ddc1d94c5529c503ab45cdfbd38 (diff) | |
download | gcc-6275791a9f72b31e9e55581fe85eb5dbeb08402e.zip gcc-6275791a9f72b31e9e55581fe85eb5dbeb08402e.tar.gz gcc-6275791a9f72b31e9e55581fe85eb5dbeb08402e.tar.bz2 |
gen-pass-instances.awk: Add args_str var in handle_line
2015-11-13 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Add args_str variable.
From-SVN: r230319
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gen-pass-instances.awk | 13 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e62685e..dab7d17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-13 Tom de Vries <tom@codesourcery.com> + + * gen-pass-instances.awk (handle_line): Add args_str variable. + 2015-11-13 Martin Liska <mliska@suse.cz> * graphite-poly.c (free_scop): Release scop->drs vector. diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index cbfaa86..88bbb4d 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -57,13 +57,16 @@ function handle_line() len_of_open = length("("); len_of_close = length(")"); - # Find pass_name argument - len_of_pass_name = len_of_call - (len_of_start + len_of_close); - pass_starts_at = call_starts_at + len_of_start; - pass_name = substr(line, pass_starts_at, len_of_pass_name); + # Find arguments + len_of_args = len_of_call - (len_of_start + len_of_close); + args_start_at = call_starts_at + len_of_start; + args_str = substr(line, args_start_at, len_of_args); + + # Set pass_name argument + pass_name = args_str; # Find call expression prefix (until and including called function) - prefix_len = pass_starts_at - 1 - len_of_open; + prefix_len = args_start_at - 1 - len_of_open; prefix = substr(line, 1, prefix_len); # Find call expression postfix |