From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61E36385843B; Tue, 28 Dec 2021 17:54:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61E36385843B From: "i at maskray dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/93645] Support Clang 12 --ld-path= Date: Tue, 28 Dec 2021 17:54:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: enhancement X-Bugzilla-Who: i at maskray dot me X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2021 17:54:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93645 --- Comment #15 from Fangrui Song --- -- is definitely rare, but not non-existent. In GCC, there is {-,--}specs. In Clang, there are --cuda-path, --ptxas-path, --hip-path, --classpath, etc. (In reply to Martin Li=C5=A1ka from comment #14) > >=20 > > I think it may be useful to simply allow -fuse-ld=3Dword (`word` cannot > > include a separator). >=20 > Sure, but Jakub had some concerns: > https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573833.html I do not see an objection to -fuse-ld=3Dword. For --ld-path, -- is definitely rare, but not non-existent. In GCC, there are {-,--}specs --sysroot. In Clang, there are --cuda-path, --ptxas-path, --hip-path, --classpath, etc. -fuse-ld=3D users mostly care about whether another linker can build their programs, not whether the option can bootstrap GCC. I actually think ld.lld= is quite sufficient in bootstrapping GCC but if there are edge-case extensions which not supported, ld.lld developers may not want to the project with more obscure options... > >=20 > > If that may be troublesome, having -fuse-ld=3Dmold in GCC 12 is still n= ice. > >=20 >=20 > I've just done that: > https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587426.html Thanks=