public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
@ 2021-09-27 19:47 gscfq@t-online.de
  2021-09-27 19:51 ` [Bug c/102504] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-09-27 19:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

            Bug ID: 102504
           Summary: [12 Regression] ICE in build_outer_var_ref, at
                    omp-low.c:746
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20210808 and 20210822, in addition to pr102415 :


$ cat z1.c
void abort ();
void f ()
{
  int r;
  #pragma omp scope reduction(+:r) nowait
  abort ();
}


$ gcc-12-20210926 -c z1.c -fopenmp
during GIMPLE pass: omplower
z1.c: In function 'f':
z1.c:5:11: internal compiler error: in build_outer_var_ref, at omp-low.c:746
    5 |   #pragma omp scope reduction(+:r) nowait
      |           ^~~
0xb621b9 build_outer_var_ref
        ../../gcc/omp-low.c:746
0xb768ea lower_reduction_clauses
        ../../gcc/omp-low.c:7654
0xb687dc lower_omp_scope
        ../../gcc/omp-low.c:8839
0xb687dc lower_omp_1
        ../../gcc/omp-low.c:14101
0xb687dc lower_omp
        ../../gcc/omp-low.c:14283
0xb6922d lower_omp_1
        ../../gcc/omp-low.c:14073
0xb6922d lower_omp
        ../../gcc/omp-low.c:14283
0xb70381 execute_lower_omp
        ../../gcc/omp-low.c:14322
0xb70381 execute
        ../../gcc/omp-low.c:14370

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/102504] [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
  2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
@ 2021-09-27 19:51 ` jakub at gcc dot gnu.org
  2021-09-27 21:04 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-27 19:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |jakub at gcc dot gnu.org
   Last reconfirmed|                            |2021-09-27
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is invalid:
A list item that appears in a reduction clause of a scope construct must be
shared in the parallel region to which a corresponding scope region binds.

We just should diagnose it.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/102504] [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
  2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
  2021-09-27 19:51 ` [Bug c/102504] " jakub at gcc dot gnu.org
@ 2021-09-27 21:04 ` pinskia at gcc dot gnu.org
  2021-09-28 11:49 ` [Bug middle-end/102504] " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-27 21:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/102504] [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
  2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
  2021-09-27 19:51 ` [Bug c/102504] " jakub at gcc dot gnu.org
  2021-09-27 21:04 ` pinskia at gcc dot gnu.org
@ 2021-09-28 11:49 ` jakub at gcc dot gnu.org
  2021-09-29  8:21 ` cvs-commit at gcc dot gnu.org
  2021-10-01 12:40 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-28 11:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 51515
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51515&action=edit
gcc12-pr102504.patch

Untested fix.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/102504] [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
  2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-09-28 11:49 ` [Bug middle-end/102504] " jakub at gcc dot gnu.org
@ 2021-09-29  8:21 ` cvs-commit at gcc dot gnu.org
  2021-10-01 12:40 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-29  8:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:d3e7bb15e28c554bf4484a912f3b9c18c60ec68f

commit r12-3955-gd3e7bb15e28c554bf4484a912f3b9c18c60ec68f
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Sep 29 10:17:52 2021 +0200

    openmp: Disallow reduction with var private in containing parallel even on
scope [PR102504]

    The standard has a restriction:
    "A list item that appears in a reduction clause of a scope construct must
be
    shared in the parallel region to which a corresponding scope region binds."
    similar to the restriction for worksharing constructs, but we were checking
    it only on worksharing constructs and not for scope and ICEd later on
during
    omp expansion.

    2021-09-29  Jakub Jelinek  <jakub@redhat.com>

            PR middle-end/102504
            * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private
even
            in OMP_SCOPE clauses, not just on worksharing construct clauses.

            * c-c++-common/gomp/scope-4.c: New test.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/102504] [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746
  2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-09-29  8:21 ` cvs-commit at gcc dot gnu.org
@ 2021-10-01 12:40 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-10-01 12:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-01 12:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 19:47 [Bug c/102504] New: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 gscfq@t-online.de
2021-09-27 19:51 ` [Bug c/102504] " jakub at gcc dot gnu.org
2021-09-27 21:04 ` pinskia at gcc dot gnu.org
2021-09-28 11:49 ` [Bug middle-end/102504] " jakub at gcc dot gnu.org
2021-09-29  8:21 ` cvs-commit at gcc dot gnu.org
2021-10-01 12:40 ` jakub at gcc dot gnu.org

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).