From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 1BF9E3858D20 for ; Wed, 17 Apr 2024 13:59:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BF9E3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1BF9E3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713362353; cv=none; b=FZfImULwXHPS6S6z4F4vTaShgn4B3bCiBuzbUyLm4GF8TbR7YjxTvsGT55Ak6Vu/rttFZzYGvMaJc8dieJGD6um4Tt9EIIK2kRPoQy6mrMg53jvkQt2GyfNP1p2a273UOjkveeAWO/h0xQ42rTt57xrlHvM1c4RLRlcDcZNYAG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713362353; c=relaxed/simple; bh=XIVptWjlGt07Tbg2TgpajldAjGxcLa1EN8PbxmH2nrk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XyNChayWRK+hnC3YIJt/T8zAS7cxOjOt7DERzWEMsBOABA/xAnCnbg6FkdmBh0mn4GfxY/dOs2h921mKbKpv5Z9zsrOLaOkVkmtdGAXG7CUrxlktSpoLViHPKzPGIOyY/Jnzo2cdRT5ROduxcnTbFyVZCmpwM7gQ2rBY1KvRAlM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 39EB061AF0; Wed, 17 Apr 2024 15:59:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received:received; s= 20200306; t=1713362350; bh=XIVptWjlGt07Tbg2TgpajldAjGxcLa1EN8Pbx mH2nrk=; b=ZMQNk2hXXKDlvhDZ4T6Wh85+o3iofeiheQQi/0Mx55fS/vdqREWHH 58+2Z8U9yKvtHH6jk5wFi0EFMuu0v81HEnL3M9+XuE6ATKTleAeg382bSxVlWHqv 9K8WDglu9f/9SE/V/c9VvkOsS83ZveVHm9FaAt1RbBp/ZOIaj56HzHUFgt4qfZjC jHMU8zUSe/wK1KgdjwnbYeW4bEP6sytEEcK5QeFPAVHxWSlh5pMBKKZ0SQ+/orND zq++OhsjJLykQKBDv4fTrUFjyko0H5BSjYShlXrZ4o+2ifIauFiBcJCT1NA/hyWy N9PhYg+BvcXegNBgGAnIRQcTdWTbuPZIw== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZulKc0Qj0-ys; Wed, 17 Apr 2024 15:59:10 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50855b96.dip0.t-ipconnect.de [80.133.91.150]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id B163661F10; Wed, 17 Apr 2024 15:59:10 +0200 (CEST) From: Rainer Orth To: "Andrew Pinski (QUIC)" Cc: "gcc-patches@gcc.gnu.org" , "iains.gcc@gmail.com" , "dje.gcc@gmail.com" Subject: Re: Request for testing on non-Linux targets; remove special casing of /usr/lib and /lib from the driver References: Date: Wed, 17 Apr 2024 15:59:10 +0200 In-Reply-To: (Andrew Pinski's message of "Tue, 16 Apr 2024 23:47:53 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3783.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Andrew, > The driver currently will remove "/lib" and "/usr/lib" from the library > path that gets passed to the linker because it considers them as paths that > the linker will already known to search. But this is not true for newer > linkers, mold and lld for an example don't have a default search path. > This patch removes the special casing to fix FreeBSD building where lld is > used by default and also fix riscv-linux-gnu when used in combination with > mold. > I have tested it on x86_64-linux-gnu and it works there but since the code > in the driver has been around since 1992, I request some folks to test it > on AIX, Mac OS (Darwin) and solaris where the ld is not GNU bfd ld as I > don't have access to those targets currently. actually, you do: all of those are availble inside the cfarm. I've also tested the patch on i386-pc-solaris2.11 and sparc-sun-solaris2.11 with the native ld: no regressions in either case. >From what I can see, the handling of -Y P,* in gcc/config/sol2.h (LINK_ARCH{32,64}_SPEC_BASE) can go as well. I'll test this, but this is almost certainly GCC 15 material. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University