[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 22 16:49:18 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:455f165fd86f50163d2147b669edcc2e9bf5b0f8
commit r8-10867-g455f165fd86f50163d2147b669edcc2e9bf5b0f8
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Dec 4 12:18:21 2020 +0100
debug: Fix another vector DECL_MODE ICE [PR98100]
The PR88587 fix changes DECL_MODE of vars with vector type during
inlining/cloning
when the vars are copied, so that their DECL_MODE matches their TYPE_MODE
in
the new function. Unfortunately, the following testcase still ICEs, the
var
isn't really used in the new function and so it isn't copied, but becomes
just a nonlocalized var. So we can't adjust its DECL_MODE because it
appears in multiple functions and needs different modes in between them.
The following patch changes the DEBUG_INSN creation to use TYPE_MODE
instead
of DECL_MODE for vars with vector types.
2020-12-04 Jakub Jelinek <jakub@redhat.com>
PR target/98100
* cfgexpand.c (expand_gimple_basic_block): For vars with
vector type, use TYPE_MODE rather than DECL_MODE.
* gcc.target/i386/pr98100.c: New test.
(cherry picked from commit 4c18faa4dd4dffdb76bc879b7555574ce3f4da01)
More information about the Gcc-bugs
mailing list