]> 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>
Thu, 2 May 2024 12:46:37 +0000 (13:46 +0100)
commit9b5c0be59d0f94df0517820f00b4520b5abddd8c
treeffe58e7d9388367be5c5cc211bbf81ccb5fc3e9d
parent43dc4302b4181535d24e83759514b774ae4dbfcc
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>
gcc/objc/objc-next-runtime-abi-02.cc