[Bug middle-end/104757] [12 Regression] ICE (segfault) GIMPLE pass: walloca - in gimple_range_global
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 2 11:52:04 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104757
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #3)
> (In reply to Thomas Schwinge from comment #1)
> > Confirmed ever since commit 48c6cac9caea1dc7c5f50ad3a736f6693e74a11b
> which was committed on 'Nov 12 17:58:21 2021'. — However, that's a FE-only
> patch which only affects parsing.
>
> * * *
>
> The ICE/segfault is in ranger_cache::get_global_range (irange &r, tree
> name) const for
> 923 r = gimple_range_global (name);
>
> (gdb) p debug_tree(name)
> <ssa_name 0x7ffff6fd1798
> type <boolean_type 0x7ffff6fed150 logical(kind=4) public unsigned SI
> ...
>
> which is a 4-byte Boolean value.
you don't quote more but I guess this name is released and thus has a NULL
SSA_NAME_DEF_STMT so the is_a check crashes.
if (SSA_NAME_IS_DEFAULT_DEF (name) || (cfun && cfun->after_inlining)
|| is_a<gphi *> (SSA_NAME_DEF_STMT (name)))
More information about the Gcc-bugs
mailing list