]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C, NeXT runtime: Correct the default for fobjc-nilcheck.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 15 Aug 2021 11:52:30 +0000 (12:52 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 23 Apr 2024 14:11:17 +0000 (15:11 +0100)
commitb907af1ce4966b662ae3d26afa24fa6c3ac468c9
tree695504b32784ab1af56cfcb7be82d47be8dbf51a
parent87431b4a81e9dc5988509399704a7352800c6a77
Objective-C, NeXT runtime: Correct the default for fobjc-nilcheck.

It is intended that the default for the NeXT runtime at ABI 2 is to
check for nil message receivers.  This updates this to match the
documented behaviour and to match the behaviour of the system tools.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c (objc_next_runtime_abi_02_init):
Default receiver nilchecks on.

(cherry picked from commit de0b250b2badb475f8c09f3cd2c57fd3f9127fe3)
gcc/objc/objc-next-runtime-abi-02.c