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 fortran/93553] ICE in scan_omp_1_op, at omp-low.c:3485 Date: Fri, 17 Jul 2020 17:05:07 +0000 [thread overview] Message-ID: <bug-93553-4-TxjqXnyTlc@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-93553-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93553 --- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> --- The variable ("D.3940") is produced via the following route. Contrary to variables processed in gimplify.c, which use /* When within an OMP context, notice uses of variables. */ if (gimplify_omp_ctxp && omp_notice_variable (gimplify_omp_ctxp, decl, true)) ... This variable does not get recorded – and, hence, it fails as shown in the previous comment 6. #0 create_tmp_var_raw (type=type@entry=0x7ffff78c5d20, prefix=prefix@entry=0x0) at ../../repos/gcc/gcc/gimple-expr.c:449 #1 0x0000000000f274f6 in create_tmp_var_for (info=info@entry=0x266f870, type=0x7ffff78c5d20, prefix=prefix@entry=0x0) at ../../repos/gcc/gcc/tree-nested.c:160 #2 0x0000000000f2828d in init_tmp_var (info=info@entry=0x266f870, exp=exp@entry=0x7ffff78d45a0, gsi=gsi@entry=0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.c:462 #3 0x0000000000f2f1d4 in convert_nonlocal_reference_op (tp=tp@entry=0x7ffff78cc608, walk_subtrees=walk_subtrees@entry=0x7fffffffd134, data=data@entry=0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.c:1081 #4 0x000000000114e262 in walk_tree_1 (tp=0x7ffff78cc608, func=func@entry=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, data=data@entry=0x7fffffffd540, pset=pset@entry=0x0, lh=lh@entry=0x0) at ../../repos/gcc/gcc/tree.c:11960 #5 0x000000000114f942 in walk_tree_1 (tp=tp@entry=0x7ffff7700478, func=func@entry=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, data=data@entry=0x7fffffffd540, pset=pset@entry=0x0, lh=lh@entry=0x0) at ../../repos/gcc/gcc/tree.c:12296 #6 0x0000000000f2f4fd in convert_nonlocal_reference_op (tp=0x7ffff7700478, tp@entry=0x7ffff78cd130, walk_subtrees=walk_subtrees@entry=0x7fffffffd354, data=data@entry=0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.c:1156 #7 0x000000000114e262 in walk_tree_1 (tp=0x7ffff78cd130, func=func@entry=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, data=data@entry=0x7fffffffd540, pset=pset@entry=0x0, lh=lh@entry=0x0) at ../../repos/gcc/gcc/tree.c:11960 #8 0x0000000000b7981a in walk_gimple_op (stmt=0x7ffff78cd0f0, callback_op=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, wi=0x7fffffffd540) at ../../repos/gcc/gcc/gimple.h:2492 #9 0x0000000000b79a6d in walk_gimple_stmt (gsi=0x7fffffffd460, callback_stmt=0xf30aa0 <convert_nonlocal_reference_stmt(gimple_stmt_iterator*, bool*, walk_stmt_info*)>, callback_op=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, wi=0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:596 #10 0x0000000000b79c01 in walk_gimple_seq_mod (pseq=<optimized out>, callback_stmt=0xf30aa0 <convert_nonlocal_reference_stmt(gimple_stmt_iterator*, bool*, walk_stmt_info*)>, callback_op=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, wi=0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:51 #11 0x0000000000b79af2 in walk_gimple_stmt (gsi=0x7fffffffd4e0, callback_stmt=0xf30aa0 <convert_nonlocal_reference_stmt(gimple_stmt_iterator*, bool*, walk_stmt_info*)>, callback_op=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, wi=0x7fffffffd540) at ../../repos/gcc/gcc/gimple.h:4382 #12 0x0000000000b79c01 in walk_gimple_seq_mod (pseq=pseq@entry=0x7ffff78cb028, callback_stmt=callback_stmt@entry=0xf30aa0 <convert_nonlocal_reference_stmt(gimple_stmt_iterator*, bool*, walk_stmt_info*)>, callback_op=callback_op@entry=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, wi=wi@entry=0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:51 #13 0x0000000000f28868 in walk_body (callback_stmt=callback_stmt@entry=0xf30aa0 <convert_nonlocal_reference_stmt(gimple_stmt_iterator*, bool*, walk_stmt_info*)>, callback_op=callback_op@entry=0xf2ee90 <convert_nonlocal_reference_op(tree*, int*, void*)>, info=info@entry=0x266f870, pseq=0x7ffff78cb028) at ../../repos/gcc/gcc/tree-nested.c:712 #14 0x0000000000f30490 in convert_nonlocal_omp_clauses (pclauses=0x7ffff76fe6a8, wi=wi@entry=0x7fffffffd7d0) at ../../repos/gcc/gcc/tree-nested.c:1424
next prev parent reply other threads:[~2020-07-17 17:05 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-93553-4@http.gcc.gnu.org/bugzilla/> 2020-07-17 11:02 ` burnus at gcc dot gnu.org 2020-07-17 17:05 ` burnus at gcc dot gnu.org [this message] 2020-07-20 18:41 ` burnus at gcc dot gnu.org 2020-08-08 9:12 ` cvs-commit at gcc dot gnu.org 2020-08-25 17:45 ` cvs-commit at gcc dot gnu.org 2020-09-16 19:22 ` cvs-commit at gcc dot gnu.org 2020-09-17 17:14 ` jakub 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-93553-4-TxjqXnyTlc@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: linkBe 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).