diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2024-03-07 17:27:17 +0100 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2024-03-07 21:30:30 +0100 |
commit | 0ed6e5b4820e01fa86b48a7b1d62f752ec97ea41 (patch) | |
tree | 986b00f6726d95712ab7093c91751ec7a8a0918b | |
parent | 226043a4d8fb23c7fe7bf16e485b3cfaa094db21 (diff) | |
download | gcc-0ed6e5b4820e01fa86b48a7b1d62f752ec97ea41.zip gcc-0ed6e5b4820e01fa86b48a7b1d62f752ec97ea41.tar.gz gcc-0ed6e5b4820e01fa86b48a7b1d62f752ec97ea41.tar.bz2 |
testsuite, darwin: improve check for -shared support
The undefined symbols are allowed for C checks, but when
this is run as C++, the mangled foo() symbol is still
seen as undefined, and the testsuite thinks darwin does not
support -shared.
gcc/testsuite/ChangeLog:
PR target/114233
* lib/target-supports.exp: Fix test for C++.
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ae33c4f..467b539 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1390,7 +1390,7 @@ proc check_effective_target_shared { } { # here to be undefined. set extra_flags "" if { [istarget *-*-darwin\[912\]*] } { - set extra_flags "-Wl,-U,_foo,-U,_bar" + set extra_flags "-Wl,-U,_foo,-U,_bar,-U,__Z3foov" } # Note that M68K has a multilib that supports -fpic but not # -fPIC, so we need to check both. We test with a program that |