public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/104757] [12 Regression] ICE (segfault) GIMPLE pass: walloca - in gimple_range_global
Date: Wed, 02 Mar 2022 15:57:20 +0000 [thread overview]
Message-ID: <bug-104757-4-JRNQIjYIzt@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104757-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104757
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> (In reply to Tobias Burnus from comment #3)
> > 923 r = gimple_range_global (name);
> >
> > (gdb) p debug_tree(name)
> > <ssa_name 0x7ffff6fd1798
> > type <boolean_type 0x7ffff6fed150 logical(kind=4) public unsigned SI
> > ...
> 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)))
Indeed:
(gdb) p name->base.default_def_flag
$2 = 0
(gdb) p cfun
$3 = (function *) 0x7ffff71be000
(gdb) p cfun->after_inlining
$4 = 0
(gdb) p name->ssa_name.def_stmt
$5 = (gimple *) 0x0
next prev parent reply other threads:[~2022-03-02 15:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 11:06 [Bug middle-end/104757] New: " burnus at gcc dot gnu.org
2022-03-02 11:14 ` [Bug middle-end/104757] " tschwinge at gcc dot gnu.org
2022-03-02 11:19 ` burnus at gcc dot gnu.org
2022-03-02 11:25 ` burnus at gcc dot gnu.org
2022-03-02 11:52 ` rguenth at gcc dot gnu.org
2022-03-02 11:52 ` rguenth at gcc dot gnu.org
2022-03-02 15:50 ` burnus at gcc dot gnu.org
2022-03-02 15:57 ` burnus at gcc dot gnu.org [this message]
2022-03-02 17:37 ` [Bug middle-end/104757] [12 Regression][OpenMP] ICE in GIMPLE pass: walloca - in gimple_range_global / segfault as SSA_NAME_DEF_STMT is NULL for 'if' clause arg jakub at gcc dot gnu.org
2022-03-02 18:37 ` jakub at gcc dot gnu.org
2022-03-02 18:50 ` jakub at gcc dot gnu.org
2022-03-03 8:22 ` cvs-commit at gcc dot gnu.org
2022-03-03 8:35 ` jakub at gcc dot gnu.org
2022-03-03 14:35 ` tschwinge at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-104757-4-JRNQIjYIzt@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).