* [committed] gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line
@ 2015-11-12 10:06 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2015-11-12 10:06 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
Hi,
this patch simplifies the initialization of postfix_starts_at in
handle_line in gen-pass-instances.awk.
Committed to trunk as trivial.
Thanks,
- Tom
[-- Attachment #2: 0002-gen-pass-instances.awk-Simplify-init-of-postfix_starts_at-in-handle_line.patch --]
[-- Type: text/x-patch, Size: 763 bytes --]
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.
---
gcc/gen-pass-instances.awk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk
index 311273e..08d4a37 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-12 10:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 10:06 [committed] gen-pass-instances.awk: Simplify init of postfix_starts_at in handle_line Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).