From patchwork Fri Jun 25 02:17:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 56880 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 DF133B7069 for ; Fri, 25 Jun 2010 12:17:50 +1000 (EST) Received: (qmail 5637 invoked by alias); 25 Jun 2010 02:17:48 -0000 Received: (qmail 5622 invoked by uid 22791); 25 Jun 2010 02:17:47 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, TW_AV, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 25 Jun 2010 02:17:42 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id D68AFB005C; Thu, 24 Jun 2010 22:17:39 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o5P2HdMn024514; Thu, 24 Jun 2010 22:17:39 -0400 Date: Thu, 24 Jun 2010 22:17:39 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Subject: [PATCH] Backport lto/alias testsuite fixes for darwin to gcc 4.5.1 Message-ID: <20100625021739.GA24512@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 The attached patch backports r159700, r158929, r159837 and r159924 from trunk to gcc 4.5 branch which eliminate several lto and alias related testsuite failures on darwin. Tested on x86_64-apple-darwin10. Okay for gcc 4.5.1? Jack 2010-06-24 Jack Howarth Backport from mainline 2010-05-27 Jack Howarth * g++.dg/lto/20100302_0.C: Skip on darwin. 2010-06-24 Jack Howarth Backport from mainline 2009-04-30 Steven Bosscher * gcc.dg/lto/20091216-1_0.c: Adjust test case to avoid conflict with darwin crt1.o 'start' symbol. 2010-06-24 Jack Howarth Backport from mainline 2010-05-22 Iain Sandoe PR lto/44238 * gcc.dg/lto/20090914-2_0.c: XFAIL *-*-darwin*. 2010-06-24 Jack Howarth Backport from mainline 2010-05-25 Jack Howarth Iain Sandoe * g++.dg/abi/mangle40.C: Adjust dg-require-alias syntax. * gcc.dg/lto/20081222_0.c: Require alias support. Index: gcc/testsuite/gcc.dg/lto/20091216-1_0.c =================================================================== --- gcc/testsuite/gcc.dg/lto/20091216-1_0.c (revision 161355) +++ gcc/testsuite/gcc.dg/lto/20091216-1_0.c (working copy) @@ -1,6 +1,6 @@ /* { dg-lto-do run } */ -asm (".globl start; start: nop"); +asm (".globl start_; start_: nop"); int main () Index: gcc/testsuite/gcc.dg/lto/20081222_0.c =================================================================== --- gcc/testsuite/gcc.dg/lto/20081222_0.c (revision 161355) +++ gcc/testsuite/gcc.dg/lto/20081222_0.c (working copy) @@ -1,3 +1,4 @@ +/* { dg-require-alias "" } */ #include "20081222_0.h" extern void abort (void); Index: gcc/testsuite/gcc.dg/lto/20090914-2_0.c =================================================================== --- gcc/testsuite/gcc.dg/lto/20090914-2_0.c (revision 161355) +++ gcc/testsuite/gcc.dg/lto/20090914-2_0.c (working copy) @@ -1,5 +1,6 @@ /* { dg-lto-do run } */ /* { dg-skip-if "x86 only" { ! { x86_64-*-* i?86-*-* } } { "*" } { "" } } */ +/* { dg-skip-if "no .type" { *-*-darwin* } { "*" } { "" } } */ /* Doesn't work without this dummy function with -fwhopr. */ int foo(void) { } Index: gcc/testsuite/g++.dg/lto/20100302_0.C =================================================================== --- gcc/testsuite/g++.dg/lto/20100302_0.C (revision 161355) +++ gcc/testsuite/g++.dg/lto/20100302_0.C (working copy) @@ -1,5 +1,5 @@ // Test for ABI forward-compatibility aliases with LTO. -// { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } +// { dg-skip-if "" { { ! { i?86-*-* x86_64-*-* } } || { *-*-darwin* } } { "*" } { "" } } // { dg-lto-options {"-flto -fabi-version=2"} } #include "20100302.h" Index: gcc/testsuite/g++.dg/abi/mangle40.C =================================================================== --- gcc/testsuite/g++.dg/abi/mangle40.C (revision 161355) +++ gcc/testsuite/g++.dg/abi/mangle40.C (working copy) @@ -1,7 +1,7 @@ // PR c++/12909 // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-require-weak } -// { dg-require-alias } +// { dg-require-alias "" } // { dg-options "-mavx -Wabi -fabi-version=2" } // { dg-final { scan-assembler "weak\[^\n\]*_Z1fIDv4_fEvT_" } } // { dg-final { scan-assembler "weak\[^\n\]*_Z1fIU8__vectorfEvT_" } }