[Bug objc/124260] [16 Regression] ICE during IPA pass: cp when producing 64b objective-c code on 32b host
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 16:01:35 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124260
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Jambor <jamborm@gcc.gnu.org>:
https://gcc.gnu.org/g:70e1e055e5225aa41a13675748e3e7a76d5303c0
commit r16-8046-g70e1e055e5225aa41a13675748e3e7a76d5303c0
Author: Martin Jambor <mjambor@suse.cz>
Date: Thu Mar 12 16:59:34 2026 +0100
ipa-prop: Skip analysis od static constructor entries with no index
(PR124260)
PR 124260 is about dereferencing a NULL "index" tree when traversing
static constructors of global variables. As discussed in the bug, it
is unclear whether that is allowed but ObjC compiler creates these at
least on 32bit hosts. Ian plans to fix this in the FE in the next
stage1 but for this stage4, such entries can be easily skipped in
ipa-prop (too). The collected information is used for speculative
"devirtualization" ony and so if we miss a relevant entry, it may only
result in a "bad" decision whether to do that or not.
gcc/ChangeLog:
2026-03-11 Martin Jambor <mjambor@suse.cz>
PR objc/124260
* ipa-prop.cc (ipa_analyze_var_static_initializer): Skip a
constructor
entry if its index is NULL.
More information about the Gcc-bugs
mailing list