From: Iain Sandoe Date: Sat, 12 Nov 2011 14:30:45 +0000 (+0000) Subject: re PR testsuite/51059 (FAIL: gcc.misc-tests/gcov-14.c (test for excess errors) on... X-Git-Tag: releases/gcc-4.7.0~2226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173a8c50f1bc60e6705fd4d515ea28c911f9c635;p=thirdparty%2Fgcc.git re PR testsuite/51059 (FAIL: gcc.misc-tests/gcov-14.c (test for excess errors) on *-apple-darwin*) gcc/testsuite: PR testsuite/51059 * gcc.misc-tests/gcov-14.c (dg-options): Force flat namespace for Darwin targets and allow external symbols to be undefined. From-SVN: r181317 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1d5be98626de..f86b21ce7165 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-11-12 Iain Sandoe + + PR testsuite/51059 + * gcc.misc-tests/gcov-14.c (dg-options): Force flat namespace for + Darwin targets and allow external symbols to be undefined. + 2011-11-12 Nathan Sidwell * gcc.misc-tests/gcov-15.c: New. diff --git a/gcc/testsuite/gcc.misc-tests/gcov-14.c b/gcc/testsuite/gcc.misc-tests/gcov-14.c index 0eaf284a9c41..82fb4c0df529 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov-14.c +++ b/gcc/testsuite/gcc.misc-tests/gcov-14.c @@ -1,6 +1,8 @@ /* Test gcov extern inline. */ /* { dg-options "-O2 -fprofile-arcs -ftest-coverage" } */ +/* The following line arranges that Darwin has behavior like elf weak import. */ +/* { dg-options "-O2 -fprofile-arcs -ftest-coverage -flat_namespace -undefined suppress" { target *-*-darwin* } } */ /* { dg-require-weak "" } */ /* { dg-do run { target native } } */