From: Tom de Vries Date: Thu, 12 Nov 2015 10:02:49 +0000 (+0000) Subject: gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c741b3dd5e754e39c471a416fc58d7d5cae12de9;p=gcc.git gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Simplify init of postfix_starts_at. From-SVN: r230219 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87cb817228b..c2949a843ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-12 Tom de Vries + + * gen-pass-instances.awk (handle_line): Simplify init of + postfix_starts_at. + 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Rename var where to diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index 311273e5ca9..08d4a37e9aa 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -67,7 +67,7 @@ function handle_line() prefix = substr(line, 1, prefix_len); # Find call expression postfix - postfix_starts_at = pass_starts_at + len_of_pass_name + len_of_close; + postfix_starts_at = call_starts_at + len_of_call; postfix = substr(line, postfix_starts_at); # Set pass_counts