public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] gen-pass-instances.awk: Simplify match regexp in handle_line
@ 2015-11-12 10:09 Tom de Vries
  2015-11-13  8:58 ` Thomas Schwinge
  0 siblings, 1 reply; 3+ messages in thread
From: Tom de Vries @ 2015-11-12 10:09 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

Hi,

this patch simplifies the match regexp in handle_line in 
gen-pass-instances.awk.

Committed to trunk as trivial.

Thanks,
- Tom

[-- Attachment #2: 0003-gen-pass-instances.awk-Simplify-match-regexp-in-handle_line.patch --]
[-- Type: text/x-patch, Size: 663 bytes --]

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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-13 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 10:09 [committed] gen-pass-instances.awk: Simplify match regexp in handle_line Tom de Vries
2015-11-13  8:58 ` Thomas Schwinge
2015-11-13 10:29   ` 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).