From 2182471e3c05d23a8b048cc36d7d0b284bef7692 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 12 Nov 2015 07:30:52 +0000 Subject: [PATCH] gen-pass-instances.awk: Unify semicolon use in handle_line 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Unify semicolon use. From-SVN: r230207 --- gcc/ChangeLog | 4 ++++ gcc/gen-pass-instances.awk | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cf930d72ac..86152a64fe7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-12 Tom de Vries + + * gen-pass-instances.awk (handle_line): Unify semicolon use. + 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Remove unused var line_length. diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index 7f33e8c66fe..9eaac65ae5e 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -41,14 +41,14 @@ BEGIN { function handle_line() { line = $0; - where = match(line, /NEXT_PASS \((.+)\)/) + where = match(line, /NEXT_PASS \((.+)\)/); if (where != 0) { - len_of_start = length("NEXT_PASS (") - len_of_end = length(")") - len_of_pass_name = RLENGTH - (len_of_start + len_of_end) - pass_starts_at = where + len_of_start - pass_name = substr(line, pass_starts_at, len_of_pass_name) + len_of_start = length("NEXT_PASS ("); + len_of_end = length(")"); + len_of_pass_name = RLENGTH - (len_of_start + len_of_end); + pass_starts_at = where + len_of_start; + pass_name = substr(line, pass_starts_at, len_of_pass_name); if (pass_name in pass_counts) pass_counts[pass_name]++; else -- 2.30.2