]> 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>
Thu, 18 Jan 2024 14:15:55 +0000 (14:15 +0000)
commit8d26636f0da31e6c17b57ced52bfc61a45f23cee
treea62b3a063d3ec3aa1c560a4fc370f2a06538c1d8
parent9840e0be78150b0ef6e29975a6244698d5a5580c
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>
gcc/config/darwin.cc