]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C: Default flag_objc_sjlj_exceptions off for NeXT ABI >= 2.
authorMatt Jacobson <mhjacobson@me.com>
Thu, 29 Jul 2021 08:57:23 +0000 (09:57 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 23 Apr 2024 14:11:35 +0000 (15:11 +0100)
commit895bb1b2eb82e76d3bfc48bf35a0bbafae82d873
tree0f151356e195a064908cb51e1a91e04214994228
parentb907af1ce4966b662ae3d26afa24fa6c3ac468c9
Objective-C: Default flag_objc_sjlj_exceptions off for NeXT ABI >= 2.

Signed-off-by: Matt Jacobson <mhjacobson@me.com>
gcc/c-family/ChangeLog:

* c-opts.c (c_common_post_options): Default to
flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c
(objc_next_runtime_abi_02_init): Warn about and reset
flag_objc_sjlj_exceptions regardless of flag_objc_exceptions.
(next_runtime_02_initialize): Use a checking assert that
flag_objc_sjlj_exceptions is off.

(cherry picked from commit 798666392b512a585f0de2983a5d3423e960959e)
gcc/c-family/c-opts.c
gcc/objc/objc-next-runtime-abi-02.c