From bcd29ab77bf374a644f309d1225817ca0d7f2aef Mon Sep 17 00:00:00 2001 From: iains Date: Tue, 22 Nov 2011 08:50:40 +0000 Subject: [PATCH] gcc/testsuite: * gcc.misc-tests/gcov-16.c: Adjust scan-assembler for Darwin. * gcc.misc-tests/gcov-17.c: Likewise. * g++.dg/gcov/gcov-8.C: Likewise. * g++.dg/gcov/gcov-9.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181610 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/gcov/gcov-8.C | 3 ++- gcc/testsuite/g++.dg/gcov/gcov-9.C | 6 ++++-- gcc/testsuite/gcc.misc-tests/gcov-16.c | 3 ++- gcc/testsuite/gcc.misc-tests/gcov-17.c | 3 ++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0f3216e..086c1fb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-11-22 Iain Sandoe + + * gcc.misc-tests/gcov-16.c: Adjust scan-assembler for Darwin. + * gcc.misc-tests/gcov-17.c: Likewise. + * g++.dg/gcov/gcov-8.C: Likewise. + * g++.dg/gcov/gcov-9.C: Likewise. + 2011-11-21 Torvald Riegel * g++.dg/tm/pr47747.C: New test. diff --git a/gcc/testsuite/g++.dg/gcov/gcov-8.C b/gcc/testsuite/g++.dg/gcov/gcov-8.C index 25e265e..272cefc 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-8.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-8.C @@ -10,4 +10,5 @@ void X::Fink () { } -/* { dg-final { scan-assembler "\\.hidden\t__gcov___ZN1X4FinkEv" } } */ +/* { dg-final { scan-assembler "\\.hidden\t__gcov___ZN1X4FinkEv" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler "\\.private_extern ___gcov___ZN1X4FinkEv" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/g++.dg/gcov/gcov-9.C b/gcc/testsuite/g++.dg/gcov/gcov-9.C index e8d5ad8..b9c64d2 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-9.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-9.C @@ -10,6 +10,8 @@ extern "C" void (*Foo ()) () return Boo; } -/* { dg-final { scan-assembler "\\.hidden\t__gcov___Z3Boov" } } */ +/* { dg-final { scan-assembler "\\.hidden\t__gcov___Z3Boov" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler "\\.private_extern ___gcov___Z3Boov" { target *-*-darwin* } } } */ /* { dg-final { scan-assembler "__gcov__Foo:" } } */ -/* { dg-final { scan-assembler-not "\\.hidden\t__gcov__Foo" } } */ +/* { dg-final { scan-assembler-not "\\.hidden\t__gcov__Foo" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler-not "\\.private_extern ___gcov__Foo" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/gcc.misc-tests/gcov-16.c b/gcc/testsuite/gcc.misc-tests/gcov-16.c index b05c4a0..478f44a 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov-16.c +++ b/gcc/testsuite/gcc.misc-tests/gcov-16.c @@ -8,4 +8,5 @@ void Foo () { } - /* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" } } */ + /* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" { target { ! *-*-darwin* } } } } */ + /* { dg-final { scan-assembler "\\.private_extern ___gcov__Foo" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/gcc.misc-tests/gcov-17.c b/gcc/testsuite/gcc.misc-tests/gcov-17.c index 66f50f2..f8ff794 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov-17.c +++ b/gcc/testsuite/gcc.misc-tests/gcov-17.c @@ -8,4 +8,5 @@ void __attribute__ ((visibility ("hidden"), weak)) Foo () { } -/* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" } } */ +/* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler "\\.private_extern ___gcov__Foo" { target *-*-darwin* } } } */ -- 2.7.4