public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-10379] testsuite, Darwin: Allow for an undefined symbol [PR114036].
@ 2024-04-21 13:05 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-21 13:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ed046c2cc0f0a2d00cc77e5e9ce5d8f71e2278c6

commit r12-10379-ged046c2cc0f0a2d00cc77e5e9ce5d8f71e2278c6
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Mar 31 11:27:53 2024 +0100

    testsuite, Darwin: Allow for an undefined symbol [PR114036].
    
    Darwin's linker defaults to requiring all symbols to be defined at
    static link time (unless specifically noted or dynamic lookuo is
    enabled).
    
    For this test, we just need to note that the symbol is expected to
    be undefined.
    
            PR testsuite/114036
    
    gcc/testsuite/ChangeLog:
    
            * gcc.misc-tests/gcov-14.c: Allow for 'Foo' to be undefined
            on Darwin link lines.
    
    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit ad8e34eaa870608e2b07b4e7147e6ef2944bb8b5)

Diff:
---
 gcc/testsuite/gcc.misc-tests/gcov-14.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.misc-tests/gcov-14.c b/gcc/testsuite/gcc.misc-tests/gcov-14.c
index 2bebf7e4a93..61a9191c068 100644
--- a/gcc/testsuite/gcc.misc-tests/gcov-14.c
+++ b/gcc/testsuite/gcc.misc-tests/gcov-14.c
@@ -3,7 +3,7 @@
 /* { dg-do run { target native } } */
 /* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */
 /* The following line arranges that Darwin has behavior like elf weak import.  */
-/* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* }  } */
+/* { dg-additional-options "-Wl,-U,_Foo" { target *-*-darwin* }  } */
 /* { dg-require-weak "" } */
 /* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */
 /* { dg-skip-if "undefined weak not supported" { powerpc-ibm-aix* } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-21 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21 13:05 [gcc r12-10379] testsuite, Darwin: Allow for an undefined symbol [PR114036] Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).