This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch testsuite g++.old-deja]: Fix some testcases for mingw targets


Hi,

This patch takes care that we are using for operator new/delete
replacement test static version on
mingw-targets.  As the shared (DLL) version isn't able to have
operator overload within DLL itself, as a DLL is finally-linked for
PE-COFF.

ChangeLog

2012-12-15  Kai Tietz  <ktietz@redhat.com>

	* g++.old-deja/g++.brendan/new3.C: Adjust test for mingw
	targets to use static-version.
	* g++.old-deja/g++.abi/cxa_vec.C: Likewise.
	* g++.old-deja/g++.abi/arraynew.C: Likewise.
	* g++.old-deja/g++.eh/new1.C: Likewise.
	* g++.old-deja/g++.eh/new2.C: Likewise.

Ok for apply?

Regards,
Kai

Index: g++.old-deja/g++.brendan/new3.C
===================================================================
--- g++.old-deja/g++.brendan/new3.C	(revision 182092)
+++ g++.old-deja/g++.brendan/new3.C	(working copy)
@@ -5,6 +5,8 @@
 // are resolved when the kernel is linked.
 // { dg-do run { xfail { powerpc-ibm-aix* || vxworks_kernel } } }
 // { dg-options "-flat_namespace" { target *-*-darwin[67]* } }
+// Avoid use of none-overridable new/delete operators in shared
+// { dg-options "-static" { target *-*-mingw* } }
 // GROUPS passed operator-new
 #include <stdio.h>
 #include <stdlib.h>
Index: g++.old-deja/g++.abi/cxa_vec.C
===================================================================
--- g++.old-deja/g++.abi/cxa_vec.C	(revision 182092)
+++ g++.old-deja/g++.abi/cxa_vec.C	(working copy)
@@ -5,6 +5,8 @@
 // are resolved when the kernel is linked.
 // { dg-do run { xfail { powerpc-ibm-aix* || vxworks_kernel } } }
 // { dg-options "-flat_namespace" { target *-*-darwin[67]* } }
+// Avoid use of none-overridable new/delete operators in shared
+// { dg-options "-static" { target *-*-mingw* } }
 // Test __cxa_vec routines
 // Copyright (C) 2000, 2005 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 7 Apr 2000 <nathan@nathan@codesourcery.com>
Index: g++.old-deja/g++.abi/arraynew.C
===================================================================
--- g++.old-deja/g++.abi/arraynew.C	(revision 182092)
+++ g++.old-deja/g++.abi/arraynew.C	(working copy)
@@ -1,5 +1,7 @@
 // { dg-do run  }
 // Origin: Mark Mitchell <mark@codesourcery.com>
+// Avoid use of none-overridable new/delete operators in shared
+// { dg-options "-static" { target *-*-mingw* } }

 #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100

Index: g++.old-deja/g++.eh/new2.C
===================================================================
--- g++.old-deja/g++.eh/new2.C	(revision 182092)
+++ g++.old-deja/g++.eh/new2.C	(working copy)
@@ -1,5 +1,7 @@
 // { dg-do run  }
 // Test that a throw in B's constructor destroys the A and frees the memory.
+// Avoid use of none-overridable new/delete operators in shared
+// { dg-options "-static" { target *-*-mingw* } }

 #include <cstddef>
 #include <cstdlib>
Index: g++.old-deja/g++.eh/new1.C
===================================================================
--- g++.old-deja/g++.eh/new1.C	(revision 182092)
+++ g++.old-deja/g++.eh/new1.C	(working copy)
@@ -1,5 +1,7 @@
 // { dg-do run  }
 // Test that a throw in foo destroys the A, but does not free the memory.
+// Avoid use of none-overridable new/delete operators in shared
+// { dg-options "-static" { target *-*-mingw* } }

 #include <cstddef>
 #include <cstdlib>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]