From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E4A83858C31; Tue, 11 Jul 2023 14:11:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E4A83858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689084685; bh=G2V+obnshh0Sp4BFJUGCpxj+6ZJBtFkdChOUne5jz2o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dTPlpi/YZW4OQKgjDU1fzCwpNMEJPFMfQzU17lB8QJ5KjkN2yOPN4qNT1S8tBPtgZ etrxcJCOgYLeWd9wUmNHU3oR4Z0kZU7+BQdfS+vEtBNSuwbgmFYAZ4cc/Itsa1Y97N 36qTKek++UMKMfRWsQU1pWXsTunVRjLNwZyokHkg= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110624] Xcode 15 ld warns about -macosx_version_min Date: Tue, 11 Jul 2023 14:11:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110624 --- Comment #5 from Iain Sandoe --- Created attachment 55523 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55523&action=3Dedit Patch for testing I tested this (by bootstrapping GCC with it) on x86_64 darwin21 with Xcode 14.3. FWIW; The reason I had not done this sooner, is that I do not have a sensib= le way to look up the SDK version at the moment (the second parameter), but AF= AIK 0.0 is allowed as a "don't know", so we can improve on this at a later time Here, I will test on some earlier Darwin versions - but would welcome confirmation that it fixes the XC15 issue. ----- ``` COLLECT_GCC_OPTIONS=3D'-B' 'gcc' '-o' 'hc' '-v' '-save-temps' '-mmacosx-version-min=3D12.0.0' '-nodefaultexport' '-mtune=3Dcore2' '-dump= dir' 'hc.' gcc/collect2 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/ -dynamic -arch x86= _64 -platform_version macos 12.0.0 0.0 -o hc -Lgcc hc-hello.o -v -lemutls_w -lg= cc -lSystem -no_compact_unwind collect2 version 14.0.0 20230707 (experimental) [remotes/home/master revisi= on r14-2384-gbb3b9c1c3ba8] gcc/collect-ld -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/ -dynamic -arch x86= _64 -platform_version macos 12.0.0 0.0 -o hc -Lgcc hc-hello.o -v -lemutls_w -lg= cc -lSystem -no_compact_unwind @(#)PROGRAM:ld PROJECT:ld64-857.1 ```=