]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C, NeXT, v2: Correct a regression in code-gen.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 30 Apr 2024 14:11:56 +0000 (15:11 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 4 May 2024 10:14:34 +0000 (11:14 +0100)
commitb6ead0978b0513c0efa040b8bda21a67a454dd27
treec66349ea50464f8bac0d70cb9b878469afae2ee6
parent2bb5a67d607de1eed56df0c889fdc9dc8d57fff8
Objective-C, NeXT, v2: Correct a regression in code-gen.

There have been several changes in the ABI of Objective-C which
depend on the OS version targetted.  In this case Protocols and
LabelProtocols should be made weak/hidden/extern from macOS 10.7
however there was a mistake in the code causing this to occur
from macOS 10.6.  Fixed thus.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.cc (WEAK_PROTOCOLS_AFTER): New.
(next_runtime_abi_02_protocol_decl): Use WEAK_PROTOCOLS_AFTER
to determine this ABI change.
(build_v2_protocol_list_address_table): Likewise.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit 9b5c0be59d0f94df0517820f00b4520b5abddd8c)
gcc/objc/objc-next-runtime-abi-02.cc