summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-12 10:02:49 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-12 10:02:49 +0000
commit80b83ba1ccc981e3db9ace9d0ebd7474f5cde246 (patch)
tree91ba36e2a49e63d51e4a60bed8a4c8bb220175bb
parentf55079b201210b0ce57d556321febfeb3b3b87a5 (diff)
downloadgcc-80b83ba1ccc981e3db9ace9d0ebd7474f5cde246.tar.gz
gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line
2015-11-12 Tom de Vries <tom@codesourcery.com> * gen-pass-instances.awk (handle_line): Simplify init of postfix_starts_at. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230219 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gen-pass-instances.awk2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 87cb817228b..c2949a843ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
call_starts_at.
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