From patchwork Sun Sep 23 01:33:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 186175 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 411042C0080 for ; Sun, 23 Sep 2012 11:33:42 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348968823; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=a6XAgQEDfKpwBJQUC5Wv8nlA4IE=; b=e6hZekrtNqsmm3f CizyJVlQ6n8WglXt2hJ/W9aMb17DEOwsAoGgL2oI//G6OAoDEkNpSTLS1bRk9yG8 FBYyuPnKjWRwH0ZfhSY6PhP4hC8SUXCZNfyJhdRuW3hbwITyEDB2gd/jp/hxQqIs Q7RrtLt7Un0S9IKn3sUVRyUD5gJw= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ITwxC7vvxU8eGO+DthHhwYE1wyX0K34FZYSrv64gdV7ZiXfNbrdyu4teHL3SKR acNrFteiHCVdbxL4Wfo3QyLLLzYftN2oojhuQV+rU5OL8Y/IW5Dj17BzzK03uQNZ oI14FCA45g0D8vTukB/I8l4ZjFOPD2RX9Lm944qVkZ/5g=; Received: (qmail 21437 invoked by alias); 23 Sep 2012 01:33:39 -0000 Received: (qmail 21429 invoked by uid 22791); 23 Sep 2012 01:33:38 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, 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 ESMTP; Sun, 23 Sep 2012 01:33:12 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 8E59C400007; Sat, 22 Sep 2012 21:33:10 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id q8N1X9sc011825; Sat, 22 Sep 2012 21:33:09 -0400 Date: Sat, 22 Sep 2012 21:33:09 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, rguenther@suse.de Subject: [PATCH] fix gcc.dg/torture/pr53922.c on darwin Message-ID: <20120923013309.GA11823@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 eliminates the failures in linkage of the new gcc.dg/torture/pr53922.c testcase on darwin by passing -Wl,-undefined,dynamic_lookup to the linker as recommended by the darwin linker developer... http://gcc.gnu.org/ml/gcc-bugs/2012-09/msg01802.html Tested on x86_64-apple-darwin11. Okay for gcc trunk and 4.7? Jack 2012-09-22 Jack Howarth gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on darwin. Index: gcc/testsuite/gcc.dg/torture/pr53922.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr53922.c (revision 191648) +++ gcc/testsuite/gcc.dg/torture/pr53922.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-weak "" } */ +/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */ int x(int a) {