[patch, testsuite] Fix spurious g++.dg/debug/dwarf2/anonname1.C failure

Janis Johnson janis187@us.ibm.com
Mon Nov 23 21:56:00 GMT 2009


On Tue, 2009-11-17 at 15:12 +0100, Ulrich Weigand wrote:
> Hello,
> 
> the g++.dg/debug/dwarf2/anonname1.C test case shows a spurious failure
> because of what appears to be an incorrectly escaped character in
> a scan-assembler-not expression:
> 
>  // { dg-final { scan-assembler-not "\._\[0-9\]" } }
> 
> The first backslash is not escaped, so the expression arrives in the
> regexp machinery as "._[0-9]".  This matches the name "gcc-4_5" of
> the directory I'm keeping the sources in -- and that directory name
> is part of the -dA annotated assembler output.
> 
> Therefore the scan-assembler-not test spuriously fails.
> 
> The patch below adds another backslash to properly escape the character.
> This fixes the testcase failure for me.
> 
> Tested on spu-elf.
> OK for mainline?

OK.

Sorry for the delay, I'm still way behind on reading gcc-patches.

Janis



More information about the Gcc-patches mailing list