[pushed] testsuite, c++, Darwin: Add crt to LTO link line for darwin9.

Iain Sandoe <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>
Tested on x86_64, i686 darwin, pushed to trunk, thanks,
Iain

--- 8< ---

The LTO tests here are hand-crafting link lines, to build a shared
library on Darwin8/9 we have to provide a crt that contains the
header.

gcc/testsuite/ChangeLog:

	* g++.dg/lto/pr86585_0.C: Add -dylib0.o for Darwin8/9.
	* g++.dg/lto/pr87906_0.C: Likewise.

Signed-off-by: Iain Sandoe <[email protected]>
---
 gcc/testsuite/g++.dg/lto/pr86585_0.C | 3 ++-
 gcc/testsuite/g++.dg/lto/pr87906_0.C | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/g++.dg/lto/pr86585_0.C b/gcc/testsuite/g++.dg/lto/pr86585_0.C
index 15c45b5d162..a9de6ecec9a 100644
--- a/gcc/testsuite/g++.dg/lto/pr86585_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr86585_0.C
@@ -2,7 +2,8 @@
 // { dg-require-effective-target fpic }
 // { dg-require-effective-target shared }
 // { dg-lto-options { { -flto -g -nostdlib -shared -fPIC } } }
-// { dg-extra-ld-options "-Wl,-undefined,dynamic_lookup -lSystem" { target *-*-darwin* } }
+// { dg-extra-ld-options "-Wl,-undefined,dynamic_lookup -lSystem" { target *-*-darwin[12][0-9]* } }
+// { dg-extra-ld-options "-Wl,-undefined,dynamic_lookup -ldylib1.o -lSystem" { target *-*-darwin[89]* } }
 namespace Inkscape {
     class a;
 }
diff --git a/gcc/testsuite/g++.dg/lto/pr87906_0.C b/gcc/testsuite/g++.dg/lto/pr87906_0.C
index 038ba0bbbf8..c61ecce62ec 100644
--- a/gcc/testsuite/g++.dg/lto/pr87906_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr87906_0.C
@@ -4,8 +4,8 @@
 // { dg-require-effective-target shared }
 // { dg-lto-options { { -O -fPIC -flto } } }
 // { dg-extra-ld-options "-shared -nostdlib" }
-// { dg-extra-ld-options "-shared -nostdlib -Wl,-undefined,dynamic_lookup -lSystem" { target *-*-darwin* } }
-
+// { dg-extra-ld-options "-shared -nostdlib -Wl,-undefined,dynamic_lookup -lSystem" { target *-*-darwin[12][0-9]* } }
+// { dg-extra-ld-options "-shared -nostdlib -Wl,-undefined,dynamic_lookup -ldylib1.o -lSystem" { target *-*-darwin[89]* } }
 namespace com {
 namespace moon {
 namespace star {}
-- 
2.50.1 (Apple Git-155)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.