From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.eu.adacore.com (mel.act-europe.fr [IPv6:2a02:2ab8:224:1::a0a:d2]) by sourceware.org (Postfix) with ESMTPS id C174439724BF; Tue, 17 Nov 2020 10:22:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C174439724BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=charlet@eu.adacore.com Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 78F7682278; Tue, 17 Nov 2020 11:22:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at eu.adacore.com Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fE3vlfGvHvhw; Tue, 17 Nov 2020 11:22:10 +0100 (CET) Received: from chelles.localdomain (chelles.act-europe.fr [IPv6:2a02:2ab8:224:1:d6be:d9ff:fef8:4565]) by smtp.eu.adacore.com (Postfix) with ESMTP id 5DAB5812FD; Tue, 17 Nov 2020 11:22:10 +0100 (CET) Received: by chelles.localdomain (Postfix, from userid 525) id 5A88C1EA007D; Tue, 17 Nov 2020 11:22:10 +0100 (CET) Date: Tue, 17 Nov 2020 11:22:10 +0100 From: Arnaud Charlet To: Rainer Orth Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, Eric Botcazou , Arnaud Charlet Subject: Re: [PATCH] ada: c++: Get rid of libposix4, librt on Solaris Message-ID: <20201117102210.GA1495@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2020 10:22:13 -0000 > I recently noticed that neither libposix4 nor librt are needed on > Solaris 11 any longer: > > * libposix4 was renamed to librt in Solaris 7 back in 1998. > > * librt was folded into libc in the OpenSolaris timeframe, leaving librt > only as a filter on libc. Thus, it's no longer needed on either > Solaris 11 or Illumos. > > The following patch removes both uses. At the same time, Ada's use of > libthread has gone: it was folded into libc in Solaris 10 already. > TIME_LIBRARY and friends in g++ are likewise removed: Solaris was the > only user. > > Bootstrapped without regressions on i386-pc-solaris2.11, > sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. > > Ok for master? The Ada part is OK, thanks. > 2020-11-16 Rainer Orth > > gcc/cp: > * g++spec.c (TIMELIB, TIME_LIBRARY): Remove. > (lang_specific_driver): Remove TIME_LIBRARY handling. > > gcc: > * config/sol2.h (TIME_LIBRARY): Remove. > > libstdc++-v3: > * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Remove libposix4 > references. > : Don't use -lrt any longer. > * configure: Regenerate. > > * doc/xml/manual/configure.xml (--enable-libstdcxx-time=OPTION): > Remove libposix4 reference. > > gcc/ada: > * Makefile.rtl (THREADSLIB): Remove. > (MISCLIB): Remove -lposix4. > <*86-*-solaris2*>: Likewise. > * libgnarl/s-osinte__solaris.ads (System.OS_Interface): Remove > -lposix4 -lthread.