]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Fix a typo in Objective-C meta-data.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 8 Jan 2024 16:17:04 +0000 (16:17 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 31 Mar 2024 11:26:59 +0000 (12:26 +0100)
commit5ec63c2e0b9bc90247686a60db521426cef428f6
tree1aade13247f2467fa4886e10a0019abaa4c37159
parentbd760ac35d792683cd82f6b665516528fe11752a
Darwin: Fix a typo in Objective-C meta-data.

We have a typo in the metadata for assigning NSStrings to a specific
section for the V1 (32b) ABI.  When that is fixed we should never see
the case where the section needs to be deduced from the properties of
the DECLs.

gcc/ChangeLog:

* config/darwin.cc (darwin_objc1_section): Use the correct
meta-data version for constant strings.
(machopic_select_section): Assert if we fail to handle CFString
sections as Obejctive-C meta-data or drectly.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit 8d26636f0da31e6c17b57ced52bfc61a45f23cee)
gcc/config/darwin.cc