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 <iain@sandoe.co.uk>
* gcc.c-torture/compile/pr72802.c: Skip for Darwin.
From-SVN: r277585
-2019-10-27 Paul Thomas <pault@gcc.gnu.org>
+2019-10-29 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.c-torture/compile/pr72802.c: Skip for Darwin.
+
+2019-10-29 Paul Thomas <pault@gcc.gnu.org>
Backport from mainline
PR fortran/86248
+/* { 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;