diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2010-12-09 14:43:03 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2010-12-09 14:43:03 +0000 |
commit | 8b6606f2fa4e3a3992e7fcc4a026173232769cae (patch) | |
tree | 0936f3c24aacd1cd2e66a3be19a3a8076888c2ca /gcc/testsuite/lib | |
parent | 78a142524e0eb91c5f476611aa5dbf39743db999 (diff) | |
download | gcc-8b6606f2fa4e3a3992e7fcc4a026173232769cae.zip gcc-8b6606f2fa4e3a3992e7fcc4a026173232769cae.tar.gz gcc-8b6606f2fa4e3a3992e7fcc4a026173232769cae.tar.bz2 |
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): Add match pattern for
hppa*-*-*.
From-SVN: r167638
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/scanasm.exp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 71ea415..66c5223 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -339,8 +339,13 @@ proc dg-function-on-line { args } { } } - set pattern [format {%s:[^\t]*(\t.(fnstart|frame|mask|file)[^\t]*)*\t[^:]+:%d\n} \ - $symbol $line] + if { [istarget "hppa*-*-*"] } { + set pattern [format {\t;[^:]+:%d\n(\t[^\t]+\n)+%s:\n\t.PROC} \ + $line $symbol] + } else { + set pattern [format {%s:[^\t]*(\t.(fnstart|frame|mask|file)[^\t]*)*\t[^:]+:%d\n} \ + $symbol $line] + } # The lack of spaces around $pattern is important, since they'd # become part of the regex scan-assembler tries to match. |