gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line
authorTom de Vries <tom@codesourcery.com>
Thu, 12 Nov 2015 10:02:49 +0000 (10:02 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 12 Nov 2015 10:02:49 +0000 (10:02 +0000)
2015-11-12  Tom de Vries  <tom@codesourcery.com>

* gen-pass-instances.awk (handle_line): Simplify init of
postfix_starts_at.

From-SVN: r230219

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

index 87cb817228b4a0b909d9750289ad174a5eafb25c..c2949a843ceab0c5f37c5472b2dcf829191c6b4c 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-12  Tom de Vries  <tom@codesourcery.com>
+
+       * gen-pass-instances.awk (handle_line): Simplify init of
+       postfix_starts_at.
+
 2015-11-12  Tom de Vries  <tom@codesourcery.com>
 
        * gen-pass-instances.awk (handle_line): Rename var where to
index 311273e5ca9d671ce20dc55873f71724c0b6eaa5..08d4a37e9aa72a8150fcef6442ab485c0b4187d2 100644 (file)
@@ -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