From b2a3c016f32389d1d589466bed0b1fd4e21d4fb2 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 12 Nov 2015 10:02:40 +0000 Subject: [PATCH] gen-pass-instances.awk: Rename var where to call_starts_at in handle_line 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Rename var where to call_starts_at. From-SVN: r230218 --- gcc/ChangeLog | 5 +++++ gcc/gen-pass-instances.awk | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd5df906212..87cb817228b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-12 Tom de Vries + + * gen-pass-instances.awk (handle_line): Rename var where to + call_starts_at. + 2015-11-12 Claudiu Zissulescu * config/arc/arc.c (gen_compare_reg): Swap operands also when we diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index b10c26a65c4..311273e5ca9 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -43,8 +43,8 @@ function handle_line() line = $0; # Find call expression. - where = match(line, /NEXT_PASS \((.+)\)/); - if (where == 0) + call_starts_at = match(line, /NEXT_PASS \((.+)\)/); + if (call_starts_at == 0) { print line; return; @@ -59,7 +59,7 @@ function handle_line() # Find pass_name argument len_of_pass_name = len_of_call - (len_of_start + len_of_close); - pass_starts_at = where + len_of_start; + pass_starts_at = call_starts_at + len_of_start; pass_name = substr(line, pass_starts_at, len_of_pass_name); # Find call expression prefix (until and including called function) -- 2.30.2