[Darwin,committed] Fix regressed instantiate2

Message ID 8F5EFE9C-DCB8-4005-AB6E-2D5925001E4E@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,committed] Fix regressed instantiate2
Related show

Commit Message

Iain Sandoe May 2, 2019, 2:58 p.m.
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

Patch

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog	(revision 270800)
+++ gcc/testsuite/ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>
+
+	* g++.dg/ext/instantiate2.C: Remove special-casing for Darwin.
+
 2019-05-02  Richard Biener  <rguenther@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)" } }