aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-01-05 15:26:19 +0000
committerIain Sandoe <iains@gcc.gnu.org>2020-01-05 15:26:19 +0000
commit53cfd9360dd828a57905474fcf3116108420d512 (patch)
tree33091f4ed659177fd7f1fbb6b3daa8033585ed5f
parentc57b4c2208960c3b57abe148a5e9767f8f27747c (diff)
downloadgcc-53cfd9360dd828a57905474fcf3116108420d512.zip
gcc-53cfd9360dd828a57905474fcf3116108420d512.tar.gz
gcc-53cfd9360dd828a57905474fcf3116108420d512.tar.bz2
[testsuite, Darwin] Fix failing darwin-version-1.c.
Recent platform linkers will no longer accept linking for a target OS version less than 10.4. Recent SDKs no longer have the libgcc_s shims used for 10.4 and 10.5. So we need to adjust tests that expect these. gcc/testsuite/ChangeLog: 2020-01-05 Iain Sandoe <iain@sandoe.co.uk> * gcc.dg/darwin-version-1.c: Adjust test to use different options for Darwin4-9 and Darwin10+. From-SVN: r279888
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/darwin-version-1.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 76a25cc..81ede35 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-05 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.dg/darwin-version-1.c: Adjust test to use different
+ options for Darwin4-9 and Darwin10+.
+
2020-01-05 Jakub Jelinek <jakub@redhat.com>
PR target/93141
diff --git a/gcc/testsuite/gcc.dg/darwin-version-1.c b/gcc/testsuite/gcc.dg/darwin-version-1.c
index 11cfcef..ad7f7da 100644
--- a/gcc/testsuite/gcc.dg/darwin-version-1.c
+++ b/gcc/testsuite/gcc.dg/darwin-version-1.c
@@ -1,10 +1,14 @@
/* Basic test of the -mmacosx-version-min option. */
-/* { dg-options "-mmacosx-version-min=10.1" } */
+/* Darwin4 corresponds to MacOS 10.0. */
+/* { dg-options "-mmacosx-version-min=10.1" { target *-*-darwin[456789]* } } */
+/* Later Darwin linkers decline to link for less than Darwin8/MacOS 10.4.
+ However, we need to make the link for 10.6 because the relevant libgcc_s
+ shim files for 10.4 and 10.5 are also not installed in later SDKs. */
+/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin[123]* } } */
/* { dg-do link { target *-*-darwin* } } */
int main()
{
return 0;
}
-