]> 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>
Fri, 10 May 2024 07:53:48 +0000 (08:53 +0100)
commit48400d6c95c836d43532bb00a3a57f3c458e0778
tree8566e00b52c26342516de2e45e33ba6f26556684
parent09ea11ff860a6e496a3b178d5f4d53a5abf958a8
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.c (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.c