public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Enable dg-reqire-sharedlib on Solaris
@ 2016-05-05 14:36 Rainer Orth
  2016-05-05 16:38 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Orth @ 2016-05-05 14:36 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

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  <ro@CeBiTec.Uni-Bielefeld.DE>

	* testsuite/lib/libstdc++.exp (libstdc++_init): Enable on
	*-*-solaris*.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol2-v3-dg-require-sharedlib.patch --]
[-- Type: text/x-patch, Size: 866 bytes --]

# 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"

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [v3] Enable dg-reqire-sharedlib on Solaris
  2016-05-05 14:36 [v3] Enable dg-reqire-sharedlib on Solaris Rainer Orth
@ 2016-05-05 16:38 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2016-05-05 16:38 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches, libstdc++

On 05/05/16 16:36 +0200, Rainer Orth wrote:
>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?

Looks good - OK, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-05 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05 14:36 [v3] Enable dg-reqire-sharedlib on Solaris Rainer Orth
2016-05-05 16:38 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).