From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id E674C3849ACB for ; Fri, 19 Apr 2024 17:01:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E674C3849ACB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E674C3849ACB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713546116; cv=none; b=KEWFERYW11eS9CsZojaltdqXqj0b1C+XYDhEYgZnoaTtgLQt+x+xOdlNnCpjXToy2bcliwjOs8+VTuw2SaVJxIUc8S6AXDqkjSIyd2NtA9e6UayaC0zyO+kl3urdumc2O7AwXTvXrpRbu1M2ib5x+Y15Kg5EMqWxmk9mptC33Dw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713546116; c=relaxed/simple; bh=3LzastfInPXQA/YYk3+2xo+gn7nLfL5R9wK1pyLqPC0=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Vw6BZ6zv8hI0G4ELyHYxw7dfiexbrKXHkFJ3VO7QR1OgR+w+JBdzKbEHxiFbHTaW3pd/pitvQzKLCo9+F+rKOA9/a6w1Q4pSNXUeqGqgPFWzjf73qe0X2x7MUVopSecUSizDjDyiOsfwMWi91JCWZsya8IrqPA8D2NtiQUP/SEc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-571e3f40e31so98948a12.2 for ; Fri, 19 Apr 2024 10:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713546104; x=1714150904; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NdE9Q23o7Ag4tms1ktroAjZdESlVhhjCrkratzswiQI=; b=Cppeev1g+bN1RA5Qs6X4Ua6dd2zmGXH7qMZYVmkfpAvnwoIyvr2B9eYfzio6o2+uu9 pp28MIK72vk2iHkC5cXPMJ9PGK6XhHmvmxgvUpMrLXh0JsfD5b8WVqnwS02vSv3NSRnt xw8g0oGQ5sZpLNI/o2EwWmQicSUKQhS5JHP6awbBN9OqpEni0gNvArWoibMLrCU5Jfdj 15/vZxe9VvJBBaxcZAYXd5Y8FjalCAAjzzBomzDQ/isganvZ5vdPGTXpVZHaCm7CdWz1 qgbEKNhNoh0XFaB731nEyNBn68J38nPKnWUvmCBvOo/JQyryLVpJHSejjsUsKTTqTgJb ooIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713546104; x=1714150904; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NdE9Q23o7Ag4tms1ktroAjZdESlVhhjCrkratzswiQI=; b=tvxWj5fOS/FjtZVMh6OVVl0XLQeUMzQzHQyix99F89s48AlcEdsRGhc15E/i27HQiX sp2MzOh22brzgTvtNzcHWtw2jD5/WGAc9WoKw4BZYlGjbTlJkXezv15svjpjFxHf14aN V+tRyPYH3/okQ2+BjCvoJTRLZJy2pP9FM3OqgB30scfworxVIiqgCxw6Ocew5652NOLW kv6YEXE2IUG/P6QJz8LgVX515KrdahdwH0kk2ArdXjeu50UdnL5bgN302eucOAgSwfaG oMTRw/p1/VIRtY9L6KImI1PKqhyBi/RvtXAvumbdQ+v49+FbcXcZ5OGmAajeJB0DAmuc KDWA== X-Gm-Message-State: AOJu0YxeVAFO6fPUuVvF0k7CvdAvyTH9h2i5aXwa53LR26YQVcUFUmgG NX7etxs+PP0AGHQBqaC4Ydx+2zcRnDNxt/5hmqP5BnJ7MC0W+ksYA57A39k0afgb2myfmBEd1dc wwxa6AGYdwTJgna0JpKmbtWbf4leE5w== X-Google-Smtp-Source: AGHT+IFtuKaIjiew0e8dJ+Sqn3+DgfPR5lBo5Ysjn3E1GYgzS6xGF/1sKxfbhezbYFrzrwX2fFaH+8J87PqIey7dCNU= X-Received: by 2002:a17:906:3410:b0:a55:201f:4b62 with SMTP id c16-20020a170906341000b00a55201f4b62mr2235048ejb.0.1713546104240; Fri, 19 Apr 2024 10:01:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Edelsohn Date: Fri, 19 Apr 2024 13:01:32 -0400 Message-ID: Subject: Re: Request for testing on non-Linux targets; remove special casing of /usr/lib and /lib from the driver To: "Andrew Pinski (QUIC)" Cc: "gcc-patches@gcc.gnu.org" , "iains.gcc@gmail.com" Content-Type: multipart/alternative; boundary="000000000000d9836f0616760acc" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --000000000000d9836f0616760acc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The patch does not cause failures on AIX. Is it removing explicit references to /lib and /usr/lib? It seems more appropriate for GCC 15. Thanks for alerting me to the patch to test on AIX. AIX is in CFarm. Thanks David On Tue, Apr 16, 2024 at 7:49=E2=80=AFPM Andrew Pinski (QUIC) < quic_apinski@quicinc.com> wrote: > Hi all, > 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 th= at > 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. > > Thanks, > Andrew Pinski > --000000000000d9836f0616760acc--