]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C, Darwin : Make protocols private extern and weak.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 3 Oct 2020 19:49:53 +0000 (20:49 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 19:52:09 +0000 (20:52 +0100)
commit07c7498dc0379354d73ef4c8fd92d0473eb3a12f
treec4fb1091f6fb91a90d42cf574b3be60b97c06d4a
parentdcd9800fcd42489034c0774247eb898d79b1ea2d
Objective-C, Darwin : Make protocols private extern and weak.

Newer linkers want protocols to be private-extern and weak.
This is conditional on the runtime version.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c
(create_global_decl): Update to allow the caller to
specify declaration or definition.
(create_hidden_decl): Likewise.
(next_runtime_abi_02_protocol_decl): Make the symbol
weak and hidden for later OS runtime versions.
(build_v2_protocol_list_address_table): Likewise.
gcc/objc/objc-next-runtime-abi-02.c