]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C++, Darwin : Make metadata 'extern "C"'.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 6 Oct 2020 17:50:22 +0000 (18:50 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 10:52:44 +0000 (11:52 +0100)
commit1cc7476610299eb1969f6a93ee21010ac30f5dd6
tree27da12173903432abe8b1586a6e8f392d3b58fd0
parent1174b08b140d1fed6012d7dcf66165fabd49b7e5
Objective-C++, Darwin : Make metadata 'extern "C"'.

For current system toolchains NeXT runtime metadata symbols are not
mangled for Objective-C++ (i.e. they are considered to be
'extern "C"').

This change becomes essential when we start to emit metadata refs
as hidden and weak which is required by later editions of the runtime
and linkers.

gcc/objc/ChangeLog:

* objc-runtime-shared-support.c (start_var_decl): Make the
decl_assembler_name follow the metadata name for C++ on NeXT
runtime platforms.
gcc/objc/objc-runtime-shared-support.c