From patchwork Thu May 5 14:36:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 618984 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 3r0yDY6Gc2z9t3Z for ; Fri, 6 May 2016 00:37:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=A3YKbz3E; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=dvppqUPc2sIpemVyiEgO5OAfPRnNNLMiOTA1/bkdy341U+J31Y U0+BpXBF6F4Pi31oY7UMtlWCB4UFmfm0ebrA6T03twiEQc+MRNVdWPl/eFP25Ihv vo6x/wou3AcFTbOerZdWnpKeF/NQqODvlVZEyX08K9h6QZ+KIgrMjd3TM= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=tlrVsQPfR3eTr5VxAwR1Ia+LQUM=; b=A3YKbz3EL9Klrv0fiA58 Zcd9BoGZ6XFW45UtMHn1ZsYoq0bFmlDN74pM1hENmNa/d5Pv02PAHzdzCEc49gfL AcYzvBOzGV1fqFnORVKYp5iMEF/+5FG4gH4WSmLLjN1K0bg335G/2KyHqvv/ubDe 739YXNK2Y4o4OTw8TEVpNhU= Received: (qmail 60954 invoked by alias); 5 May 2016 14:36:56 -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 60935 invoked by uid 89); 5 May 2016 14:36:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 May 2016 14:36:45 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 2822FA10; Thu, 5 May 2016 16:36:43 +0200 (CEST) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZdFRv94d71TB; Thu, 5 May 2016 16:36:41 +0200 (CEST) Received: from fuego.CeBiTec.Uni-Bielefeld.DE (p5DCE2DA2.dip0.t-ipconnect.de [93.206.45.162]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 44C87A0F; Thu, 5 May 2016 16:36:41 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [v3] Enable dg-reqire-sharedlib on Solaris Date: Thu, 05 May 2016 16:36:40 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes I happened to notice that dg-require-sharedlib hardcodes the targets that shared library, and Solaris is missing. Fixed with the following patch. Bootstrapped on i386-pc-solaris2.12, the affected testcases now PASS. Ok for mainline? Rainer 2016-05-04 Rainer Orth * testsuite/lib/libstdc++.exp (libstdc++_init): Enable on *-*-solaris*. # HG changeset patch # Parent ba48a13c1219b37de7d83394a829bc065b62b24f Enable dg-reqire-sharedlib on Solaris diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -184,8 +184,9 @@ proc libstdc++_init { testfile } { set v3-sharedlib 0 set sharedlibdir [lookfor_file $blddir src/.libs/libstdc++.$shlib_ext] if {$sharedlibdir != ""} { - if { ([string match "*-*-linux*" $target_triplet] - || [string match "*-*-gnu*" $target_triplet]) + if { ([string match "*-*-gnu*" $target_triplet] + || [string match "*-*-linux*" $target_triplet] + || [string match "*-*-solaris*" $target_triplet]) && [isnative] } then { set v3-sharedlib 1 verbose -log "shared library support detected"