From patchwork Thu Dec 15 09:43:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 131548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BC1691007D6 for ; Thu, 15 Dec 2011 20:43:46 +1100 (EST) Received: (qmail 433 invoked by alias); 15 Dec 2011 09:43:43 -0000 Received: (qmail 422 invoked by uid 22791); 15 Dec 2011 09:43:42 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, TW_CX X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Dec 2011 09:43:09 +0000 Received: by ggnh1 with SMTP id h1so1714617ggn.20 for ; Thu, 15 Dec 2011 01:43:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.7.42 with SMTP id g10mr1167660oba.45.1323942189104; Thu, 15 Dec 2011 01:43:09 -0800 (PST) Received: by 10.182.154.65 with HTTP; Thu, 15 Dec 2011 01:43:09 -0800 (PST) Date: Thu, 15 Dec 2011 10:43:09 +0100 Message-ID: Subject: [patch testsuite g++.old-deja]: Fix some testcases for mingw targets From: Kai Tietz To: GCC Patches X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * 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 #include 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 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 +// 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 #include 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 #include