From 079e56d05c8f12be7596ba1d4b59e9e8b30f74a6 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 4 Aug 2010 16:19:01 +0200 Subject: [PATCH] re PR c++/44641 (Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition) PR c++/44641 * lib/scanasm.exp (dg-function-on-line): Expand regex to also ignore .frame and .mask assembler directives. From-SVN: r162866 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/scanasm.exp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 90dee6b74ed3..22400bd42cfe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-08-04 Uros Bizjak + + PR c++/44641 + * lib/scanasm.exp (dg-function-on-line): Expand regex to also ignore + .frame and .mask assembler directives. + 2010-08-04 Richard Guenther * gcc.dg/tree-ssa/vrp35.c: Adjust. diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 20aed864ce02..995fba09b6ea 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -316,7 +316,7 @@ proc dg-function-on-line { args } { } } - set pattern [format {%s:[^\t]*(\t.file[^\t]*)?\t[^:]+:%d\n} \ + set pattern [format {%s:[^\t]*(\t.(frame|mask|file)[^\t]*)*\t[^:]+:%d\n} \ $symbol $line] # The lack of spaces around $pattern is important, since they'd -- 2.47.2