aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2011-06-14 20:26:08 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2011-06-14 20:26:08 +0000
commit8177d8572a14675cea3e2abf2b639de0457cc697 (patch)
tree323494bcde96b4bf4dc8185e31b6985ebfd81627 /gcc
parent30644fc48bde92746faa9bca4f82dffc0617c83c (diff)
downloadgcc-8177d8572a14675cea3e2abf2b639de0457cc697.zip
gcc-8177d8572a14675cea3e2abf2b639de0457cc697.tar.gz
gcc-8177d8572a14675cea3e2abf2b639de0457cc697.tar.bz2
re PR testsuite/48727 (FAIL: g++.dg/opt/devirt2.C scan-assembler-times xyzzy 2)
2011-06-14 Steve Ellcey <sje@cup.hp.com> PR testsuite/48727 * g++.dg/opt/devirt2.C: Fix scan rules for ia64*-*-hpux* and hppa*-*-*. From-SVN: r175055
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/opt/devirt2.C6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c053a55..a6a63fc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-14 Steve Ellcey <sje@cup.hp.com>
+
+ PR testsuite/48727
+ * g++.dg/opt/devirt2.C: Fix scan rules for ia64*-*-hpux* and hppa*-*-*.
+
2011-06-14 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/arm/pr45701-1.c: Require thumb support.
diff --git a/gcc/testsuite/g++.dg/opt/devirt2.C b/gcc/testsuite/g++.dg/opt/devirt2.C
index 087dd17..94a6db8 100644
--- a/gcc/testsuite/g++.dg/opt/devirt2.C
+++ b/gcc/testsuite/g++.dg/opt/devirt2.C
@@ -1,6 +1,10 @@
// { dg-do compile }
// { dg-options "-O2" }
-// { dg-final { scan-assembler-times "xyzzy" 2 } }
+// The IA64 and HPPA compilers generate external declarations in addition
+// to the call so those scans need to be more specific.
+// { dg-final { scan-assembler-times "xyzzy" 2 { xfail hppa*-*-* ia64*-*-hpux* } } }
+// { dg-final { scan-assembler-times "br\[^\n\]*xyzzy" 2 { target ia64*-*-hpux* } } }
+// { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r" 2 { target hppa*-*-* } } }
struct S { S(); virtual void xyzzy(); };
struct R { int a; S s; R(); };