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
s...@cup.hp.com

Reply via email to