This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] gen-pass-instances.awk: Simplify match regexp in handle_line
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Thu, 12 Nov 2015 11:09:04 +0100
- Subject: [committed] gen-pass-instances.awk: Simplify match regexp in handle_line
- Authentication-results: sourceware.org; auth=none
Hi,
this patch simplifies the match regexp in handle_line in
gen-pass-instances.awk.
Committed to trunk as trivial.
Thanks,
- Tom
gen-pass-instances.awk: Simplify match regexp in handle_line
2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Simplify match regexp.
---
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 08d4a37..cbfaa86 100644
--- a/gcc/gen-pass-instances.awk
+++ b/gcc/gen-pass-instances.awk
@@ -43,7 +43,7 @@ function handle_line()
line = $0;
# Find call expression.
- call_starts_at = match(line, /NEXT_PASS \((.+)\)/);
+ call_starts_at = match(line, /NEXT_PASS \(.+\)/);
if (call_starts_at == 0)
{
print line;