public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103643] [12 Regression][OpenMP] ICE in create_tmp_var, at gimple-expr.c:482 - via gimplify_omp_affinity Date: Tue, 04 Jan 2022 07:37:52 +0000 [thread overview] Message-ID: <bug-103643-4-DlmAg57pj3@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103643-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103643 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Chung-Lin Tang <cltang@gcc.gnu.org>: https://gcc.gnu.org/g:62c8b21d48ab6012ddc50529a39071d902dba31a commit r12-6200-g62c8b21d48ab6012ddc50529a39071d902dba31a Author: Chung-Lin Tang <cltang@codesourcery.com> Date: Tue Jan 4 15:37:15 2022 +0800 openmp: Fix ICE in gimplify_omp_affinity [PR103643] After the PR90030 patch, which removes the universal casting of all Fortran array pointers to 'c_char*', a Fortran descriptor based array passed into an affinity() clause now looks like: - #pragma omp task private(i) shared(b) affinity(*(c_char *) a.data) + #pragma omp task private(i) shared(b) affinity(*(integer(kind=4)[0:] * restrict) a.data) The 'integer(kind=4)[0:]' incomplete type appears to be causing ICE during gimplify_expr() due to 'is_gimple_val, fb_rvalue'. The ICE appears to be fixed just by adjusting to 'is_gimple_lvalue, fb_lvalue'. Considering the use of the affinity() clause, which should be specifying the location of a particular object in memory, this probably makes sense. gcc/ChangeLog: PR middle-end/103643 * gimplify.c (gimplify_omp_affinity): Adjust gimplify_expr of entire OMP_CLAUSE_DECL to use 'is_gimple_lvalue, fb_lvalue' gcc/testsuite/ChangeLog: * gfortran.dg/gomp/pr103643.f90: New test.
next prev parent reply other threads:[~2022-01-04 7:37 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-10 9:59 [Bug middle-end/103643] New: " burnus at gcc dot gnu.org 2021-12-10 10:04 ` [Bug middle-end/103643] " jakub at gcc dot gnu.org 2022-01-04 7:37 ` cvs-commit at gcc dot gnu.org [this message] 2022-01-04 9:19 ` rguenth 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-103643-4-DlmAg57pj3@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).