]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Check as for .build_version support and use it if available.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Oct 2023 10:10:27 +0000 (11:10 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 18 Apr 2024 14:49:24 +0000 (15:49 +0100)
commitda939fb65affbb91424a8b3582dbf643122f37ca
treeda71312935691132830e77478a6dd7be162ff10e
parenta732f63ebc032fbcd7740156d497472d16bdea50
Darwin: Check as for .build_version support and use it if available.

This adds support for the minimum OS version data in assembler files.
At present, we have no mechanism to detect the SDK version in use, and
so that is omitted from build_versions.

We follow the implementation in clang, '.build_version' is only emitted
(where supported) for target macOS versions >= 10.14.  For earlier macOS
we fall back to using a '.macosx_version_min' directive.  This latter is
also emitted when the assembler supports it, but not build_version.

gcc/ChangeLog:

* config.in: Regenerate.
* config/darwin.cc (darwin_file_start): Add assembler directives
for the target OS version, where these are supported by the
assembler.
(darwin_override_options): Check for building >= macOS 10.14.
* configure: Regenerate.
* configure.ac: Check for assembler support of .build_version
directives.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit a4184c8a65a00eaf8a8d7f92fb8ad2f8621b39e2)
gcc/config.in
gcc/config/darwin.cc
gcc/configure
gcc/configure.ac