gen-pass-instances.awk: Rename var where to call_starts_at in handle_line
authorTom de Vries <tom@codesourcery.com>
Thu, 12 Nov 2015 10:02:40 +0000 (10:02 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 12 Nov 2015 10:02:40 +0000 (10:02 +0000)
2015-11-12  Tom de Vries  <tom@codesourcery.com>

* gen-pass-instances.awk (handle_line): Rename var where to
call_starts_at.

From-SVN: r230218

gcc/ChangeLog
gcc/gen-pass-instances.awk

index dd5df906212fd03cf457ec7c2fc3144c06f96b4a..87cb817228b4a0b909d9750289ad174a5eafb25c 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-12  Tom de Vries  <tom@codesourcery.com>
+
+       * gen-pass-instances.awk (handle_line): Rename var where to
+       call_starts_at.
+
 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * config/arc/arc.c (gen_compare_reg): Swap operands also when we
index b10c26a65c43772e4c1f6fdad442cec0321e5f2c..311273e5ca9d671ce20dc55873f71724c0b6eaa5 100644 (file)
@@ -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)