]> gcc.gnu.org Git - gcc.git/commit
Darwin: Future-proof and homogeneize detection of darwin versions
authorFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 17 Dec 2021 18:30:36 +0000 (19:30 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 18 Dec 2021 08:20:49 +0000 (09:20 +0100)
commitf18cbc1ee1f421a0dd79dc389bef9a23dd4a761d
tree0a243e2185f02ff994f70deb2e79fb094149afa6
parent2554e2da9263e4e26a164318f8041b19b8e54c21
Darwin: Future-proof and homogeneize detection of darwin versions

The current GCC branch will become 12.1.0, which will be the stable
version of GCC when the next macOS version is released. There are some
places in GCC that don’t handle darwin22 as a version, so we need to
future-proof it (gcc/config.gcc and gcc/config/darwin-driver.c). We
align that code with what Apple clang does, i.e. accept all potential
major macOS versions until 99.

This patch also homogenises the handling of darwin version numbers,
where the majority of places use darwin2*, but some used darwin2[0-9]*.
Since there never was a darwin2.x version, the two are equivalent, and
we prefer the simpler darwin2*

gcc/ChangeLog:

* config/darwin-driver.c: Make version code more future-proof.
* config.gcc: Homogeneize darwin versions.
* configure.ac: Homogeneize darwin versions.
* configure: Regenerate.

gcc/testsuite/ChangeLog:

* gcc.dg/darwin-minversion-link.c: Test darwin21.
* obj-c++.dg/cxx-ivars-3.mm: Homogeneize darwin versions.
* obj-c++.dg/objc-gc-3.mm: Homogeneize darwin versions.
* objc.dg/objc-gc-4.m: Homogeneize darwin versions.
gcc/config.gcc
gcc/config/darwin-driver.c
gcc/configure
gcc/configure.ac
gcc/testsuite/gcc.dg/darwin-minversion-link.c
gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm
gcc/testsuite/obj-c++.dg/objc-gc-3.mm
gcc/testsuite/objc.dg/objc-gc-4.m
This page took 0.066634 seconds and 6 git commands to generate.