This test regressed when we fixed Darwin to follow the standard ABI and I missed to commit the change at the time. backports to 9,8,7 pending re-opening of 9.
The fix is to remove Darwin’s special-casing thus. thanks Iain Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 270800) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2019-05-02 Iain Sandoe <i...@sandoe.co.uk> + + * g++.dg/ext/instantiate2.C: Remove special-casing for Darwin. + 2019-05-02 Richard Biener <rguent...@suse.de> PR tree-optimization/89653 Index: gcc/testsuite/g++.dg/ext/instantiate2.C =================================================================== --- gcc/testsuite/g++.dg/ext/instantiate2.C (revision 270800) +++ gcc/testsuite/g++.dg/ext/instantiate2.C (working copy) @@ -8,8 +8,7 @@ template <class T> T A<T>::t = 0; static template struct A<int>; -// { dg-final { scan-assembler "\n_?_ZN1AIiE1tE(:|\n|\t)" { target { ! *-*-darwin* } } } } -// { dg-final { scan-assembler ".zerofill __DATA,__pu_bss2,__ZN1AIiE1tE" { target *-*-darwin* } } } +// { dg-final { scan-assembler "\n_?_ZN1AIiE1tE(:|\n|\t)" } } void test_int() { A<int>::t = 42; } // { dg-final { scan-assembler-not "\n_?_ZN1AIcE1tE(:|\n|\t)" } }