From e9d087626daf6cd4104662bbf7b39babb947e973 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sun, 8 Mar 2015 23:46:34 +0000 Subject: [PATCH] re PR target/62247 (FAIL: g++.dg/abi/anon3.C -std=c++98/9 scan-assembler .weak(_definition)) PR target/62247 * g++.dg/abi/anon3.C: Skip failing scan-assembler checks on hppa*-*-hpux*. * g++.dg/abi/rtti3.C: Likewise. From-SVN: r221271 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/abi/anon3.C | 4 ++-- gcc/testsuite/g++.dg/abi/rtti3.C | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e9b11612bf6..6258ff30d96 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2015-03-08 John David Anglin + PR target/62247 + * g++.dg/abi/anon3.C: Skip failing scan-assembler checks on + hppa*-*-hpux*. + * g++.dg/abi/rtti3.C: Likewise. + * g++.dg/ipa/pr63621.C: Add dg-require-effective-target named_sections. PR target/62251 diff --git a/gcc/testsuite/g++.dg/abi/anon3.C b/gcc/testsuite/g++.dg/abi/anon3.C index 623c7f5c6e1..3e38024aedd 100644 --- a/gcc/testsuite/g++.dg/abi/anon3.C +++ b/gcc/testsuite/g++.dg/abi/anon3.C @@ -2,13 +2,13 @@ typedef struct { // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN4Heya4blahEv" } } - // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTI4Heya" } } + // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTI4Heya" { target { ! { hppa*-*-hpux* } } } } } // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTV4Heya" } } virtual const char *blah() { return "Heya::blah"; } // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN4Heya1A1fEv" } } - // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTIN4Heya1AE" } } + // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTIN4Heya1AE" { target { ! { hppa*-*-hpux* } } } } } // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZTVN4Heya1AE" } } struct A { virtual void f() { } diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C index c03e4611c0b..0316bcb5de2 100644 --- a/gcc/testsuite/g++.dg/abi/rtti3.C +++ b/gcc/testsuite/g++.dg/abi/rtti3.C @@ -3,7 +3,7 @@ // { dg-require-weak "" } // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } } -// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } } +// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } } // { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } } // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } } // { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } } -- 2.30.2