From 5e0adba026cf8a28f2368a994cec60a824de89ff Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 29 Oct 2019 20:09:40 +0000 Subject: [PATCH] [Darwin, testsuite] Skip pr72802.c. As fallout from 19315, which is not fixed on this branch, the presence of an unused static variable causes a 'promotion' of that to extern. This produces wrong code on Darwin when Mach-O PIC is in use (m32 X86 and all PPC). So skip this unconditionally, as noted in the PR trail, the usefulness of the test is questionable anyway. gcc/testsuite/ 2019-10-29 Iain Sandoe * gcc.c-torture/compile/pr72802.c: Skip for Darwin. From-SVN: r277585 --- gcc/testsuite/ChangeLog | 6 +++++- gcc/testsuite/gcc.c-torture/compile/pr72802.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8afe9297e469..2b792efb52d4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,8 @@ -2019-10-27 Paul Thomas +2019-10-29 Iain Sandoe + + * gcc.c-torture/compile/pr72802.c: Skip for Darwin. + +2019-10-29 Paul Thomas Backport from mainline PR fortran/86248 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr72802.c b/gcc/testsuite/gcc.c-torture/compile/pr72802.c index b9e1ab31580e..1e19577194eb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr72802.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr72802.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "see PR trail" { *-*-darwin* } } */ static a[]; static b, h, m, n, o, p, q, t, u, v, t5, t6, t16, t17, t18, t25; c; -- 2.47.2