From: Steve Ellcey <sje@cup.hp.com>
To: Andreas Schwab <schwab@redhat.com>
Cc: "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu>,
gcc@gcc.gnu.org, janis187@us.ibm.com
Subject: Re: Testsuite regular expression question
Date: Tue, 27 Oct 2009 17:22:00 -0000 [thread overview]
Message-ID: <1256663757.23605.23.camel@hpsje.cup.hp.com> (raw)
In-Reply-To: <m38wewai3j.fsf@hase.home>
On Tue, 2009-10-27 at 17:59 +0100, Andreas Schwab wrote:
> The regexp should not use .* in the first place, because "." also
> matches the newline, and you need to use the non-capturing variant of
> the grouping operator.
I am not sure what the non-capturing variant of the grouping operator
is. Is that the '?:' ? I have never seen that used in a
scan-assembler anywhere else. But this patch does seem to work for me:
-/* { dg-final { scan-assembler-times "byte.*?0x3.*? DW_AT_inline" 3 } } */
+/* { dg-final { scan-assembler-times "(?:byte|data1)\[^\n\]*0x3\[^\n\]* DW_AT_inline" 3 } } */
I'll let it run tonight on my other platforms to make sure it works on
more then IA64 HP-UX before submitting it.
Steve Ellcey
sje@cup.hp.com
next prev parent reply other threads:[~2009-10-27 17:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 23:35 Steve Ellcey
2009-10-27 10:38 ` Kaveh R. GHAZI
2009-10-27 17:00 ` Steve Ellcey
2009-10-27 17:13 ` Andreas Schwab
2009-10-27 17:22 ` Steve Ellcey [this message]
2009-10-27 20:18 ` Andreas Schwab
2009-10-27 17:16 ` Steve Ellcey
2009-10-27 12:03 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256663757.23605.23.camel@hpsje.cup.hp.com \
--to=sje@cup.hp.com \
--cc=gcc@gcc.gnu.org \
--cc=ghazi@caip.rutgers.edu \
--cc=janis187@us.ibm.com \
--cc=schwab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).