From patchwork Wed Mar 26 22:33:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Dominique_d=27Humi=C3=A8res?= X-Patchwork-Id: 334125 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 987A814008A for ; Thu, 27 Mar 2014 09:33:24 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :to:cc:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= bl2S85ClYvrmBGRC1UeJcriCSONX/01GqB43otcE8OY4Rc6Jv8SFPp8x31tnGen4 J359Cn0kzgIAxwPzXn7c94qDQPcJNkdSj16jkN6tVv3R1YZJ2WaFpiqByfO2QCJe M5wRoIC391lDC57twkrWASXUEIw8I7qynkxu6sCXiok= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :to:cc:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=m7Zbyk E8iw4HbYyZiz/NgDxYq8c=; b=dpBZ8IllI7gCcuVMWycH39oOlgKVOsaUPRxKc3 mY1PyuFTZFeU301LvnbU3/kwd7a+7tV/rcYfkfxC1ckgPozRN1zkSoBbKHP5DIjD HUFkHMOYEospkd2et2O3lqcoUpoEJwO3JJJ9oWNh2pWZvNMOzVR8KXejgTDizrAu oRUN8= Received: (qmail 29044 invoked by alias); 26 Mar 2014 22:33:18 -0000 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 Received: (qmail 29029 invoked by uid 89); 26 Mar 2014 22:33:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Mar 2014 22:33:10 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id s2QMX0Kl099197 ; Wed, 26 Mar 2014 23:33:00 +0100 (CET) X-Envelope-To: gcc-patches@gcc.gnu.org Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 9D632107; Wed, 26 Mar 2014 23:33:00 +0100 (CET) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s0U_BXeYRVPr; Wed, 26 Mar 2014 23:33:00 +0100 (CET) Received: by mailhost.lps.ens.fr (Postfix, from userid 8513) id 7E61D108; Wed, 26 Mar 2014 23:33:00 +0100 (CET) Date: Wed, 26 Mar 2014 23:33:00 +0100 To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iain@codesourcery.com Subject: [Patch] Silence test failures on darwin9 User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-Id: <20140326223300.7E61D108@mailhost.lps.ens.fr> From: dominiq@lps.ens.fr (Dominique Dhumieres) The first patch silences hundreds of harmless warnings from Xcode 3.2.x due to r205679 and of the kind warning: DWARFDebugInfoEntry::AppendDependants() -- check on this item TAG_namelist_item: attr = AT_namelist_item form = FORM_ref4 The following three patches fix pr54083 for darwin 8 and 9. The last patch fixes pr54407 and comes from a year ago at http://gcc.gnu.org/ml/libstdc++/2012-10/msg00111.html OK for trunk? Dominique 2014-03-26 Dominique d'Humieres PR target/43751 * lib/prune.exp: Modify the regular express to prune the new warnings introduced by r205679 on darwin9. 2014-03-26 Dominique d'Humieres Iain Sandoe PR target/54083 * gcc.dg/attr-weakref-1.c: Allow the test on darwin with the additional options -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace * gcc.dg/torture/pr53922.c: Additional option -Wl,-flat_namespace for darwin[89]. * gcc.dg/torture/pr60092.c: Additional options -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace for darwin[89]. libstdc++-v3/testsuite/ 2012-10-16 Dominique d'Humieres Jack Howarth PR target/54407 * 30_threads/condition_variable/54185.cc: Skip for darwin < 11. --- ../_gcc_clean/gcc/testsuite/lib/prune.exp 2014-01-08 12:57:20.000000000 +0100 +++ gcc/testsuite/lib/prune.exp 2014-01-18 22:53:07.000000000 +0100 @@ -59,7 +59,7 @@ proc prune_gcc_output { text } { # Ignore harmless warnings from Xcode 3.2.x. regsub -all "(^|\n)\[^\n\]*ld: warning: can't add line info to anonymous symbol\[^\n\]*" $text "" text - regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*_bound\[^\n\]*FORM_ref4\[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*FORM_ref4\[^\n\]*" $text "" text regsub -all "(^|\n)\[^\n\]*warning:\[^\n\]*TAG_variable: AT_location\[^\n\]*didn't have valid function low pc\[^\n\]*" $text "" text # Ignore harmless warnings from Xcode 4.0. --- ../_clean/gcc/testsuite/gcc.dg/attr-weakref-1.c 2013-09-04 17:48:01.000000000 +0200 +++ gcc/testsuite/gcc.dg/attr-weakref-1.c 2013-10-07 20:41:33.000000000 +0200 @@ -4,12 +4,14 @@ // This test requires support for undefined weak symbols. This support // is not available on hppa*-*-hpux*. The test is skipped rather than // xfailed to suppress the warning that would otherwise arise. -// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" "*-*-aix*" } "*" { "" } } +// { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" } "*" { "" } } // For kernel modules and static RTPs, the loader treats undefined weak // symbols in the same way as undefined strong symbols. The test // therefore fails to load, so skip it. // { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } } // { dg-options "-O2" } +// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } +// { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } // { dg-additional-sources "attr-weakref-1a.c" } // Copyright 2005 Free Software Foundation, Inc. --- ../_clean/gcc/testsuite/gcc.dg/torture/pr53922.c 2013-09-04 17:48:01.000000000 +0200 +++ gcc/testsuite/gcc.dg/torture/pr53922.c 2013-10-07 20:43:45.000000000 +0200 @@ -4,6 +4,7 @@ /* { dg-skip-if "No undefined weak" { *-*-aix* } { "*" } { "" } } */ /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } { "" } } */ /* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */ +/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */ int x(int a) { --- ../_clean/gcc/testsuite/gcc.dg/torture/pr60092.c 2014-03-24 08:05:33.000000000 +0100 +++ gcc/testsuite/gcc.dg/torture/pr60092.c 2014-03-26 22:57:17.000000000 +0100 @@ -1,6 +1,8 @@ /* { dg-do run } */ /* { dg-require-weak "" } */ /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } { "" } } */ +/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */ +/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */ /* { dg-xfail-run-if "posix_memalign modifies first arg on error" { *-*-solaris2.11* } { "-O0" } } */ typedef __SIZE_TYPE__ size_t; --- ../_clean/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc 2013-06-10 11:06:33.000000000 +0200 +++ libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc 2013-06-10 23:12:39.000000000 +0200 @@ -1,4 +1,4 @@ -// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } } +// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin1[1-9]* powerpc-ibm-aix* } } // { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* } } // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }