From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by sourceware.org (Postfix) with ESMTPS id C0538385DC35 for ; Sun, 26 Jul 2020 06:31:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C0538385DC35 Received: by mail-pl1-x644.google.com with SMTP id b9so6511475plx.6 for ; Sat, 25 Jul 2020 23:31:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fENYdEEplyQPG/Ev8BgA6X789MV7gt6Ey7E6hIr5HQo=; b=dmLVxa/6n160GxzyZ4TWOVl1WDenFpKj5wsWS0yh2LG8FA/Sh8JCVn9KEkw63QFeUu mjwM0SOg/NNWggUXRk+XD8NOQwODGZSGwaAifkK3hToq4BRPdMzAIm+UlwGFd8y5oKNi 7dVFi5zf66h4fnah+12JIndL5iNi8B00IRuReIqsBNTSR5F4/++K/MyJSZHe046A2bxx YYC4qHE0fgI/GByT2aFaffCkz5+EvzljQPBnbca8TlJB2BS8H+hBO3uX1SurO8MgWTfo asqdjLupNoFEcA1BQ1EIh857GzwYibCTmCj5EVzFWFtuACfrKnESMmcVEe77TJXsdWfH RgNQ== X-Gm-Message-State: AOAM531zYu4tQT9PPa3yGQlibWM75wTS9FM0WL7rpjhLhVsQUd5Upvbr nnjyiipl0GrfAZlroLGpKHmlF0pD1TjlfRfhurkSQQ== X-Google-Smtp-Source: ABdhPJxO+BSbgl23W4vgmSipoW09YMcub105OcZc7jsFkPnCXetZXVO2HIOoHSn2hQAUZ3dW05ct+fp67iRg/rJYddQ= X-Received: by 2002:a17:902:b943:: with SMTP id h3mr14826557pls.38.1595745078654; Sat, 25 Jul 2020 23:31:18 -0700 (PDT) MIME-Version: 1.0 References: <20200721040742.4024723-1-maskray@google.com> <20200725055937.4x6cblyb5efuhrkx@google.com> <87wo2sdqb2.fsf@linux-m68k.org> In-Reply-To: <87wo2sdqb2.fsf@linux-m68k.org> From: =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Date: Sat, 25 Jul 2020 23:31:07 -0700 Message-ID: Subject: Re: [PATCH v3] Add --ld-path= to specify an arbitrary executable as the linker To: Andreas Schwab Cc: Fangrui Song via Gcc-patches , =?UTF-8?Q?Martin_Li=C5=A1ka?= , jakub@redhat.com, Richard Biener Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2020 06:31:21 -0000 On Sat, Jul 25, 2020 at 12:09 AM Andreas Schwab wrote: > > On Jul 24 2020, Fangrui Song via Gcc-patches wrote: > > > This is to mimick nearly lines. collect2 should filter out options like -fno-lto, -flto, -fuse-ld= before passing to ld. -f* are handled by case 'f'. --ld-path needs its own `else if`. > > If you handle --ld-path as -fld-path then you don't need that. > --ld-path is a deliberate design choice. -f* is not suitable (https://sourceware.org/pipermail/gcc/2020-July/233089.html ) clang has several other --*-path= (e.g. --cuda-path)