From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4D743857836; Tue, 23 Feb 2021 18:30:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4D743857836 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99226] New: [11 Regression] ICE in expand_expr_real_1, at expr.c:10279 Date: Tue, 23 Feb 2021 18:30:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2021 18:30:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99226 Bug ID: 99226 Summary: [11 Regression] ICE in expand_expr_real_1, at expr.c:10279 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20200531 and 20200607, at -O1+ : (compiles with single loop) $ cat z1.f90 subroutine sub (n) integer :: n, i !$omp target !$omp teams distribute dist_schedule (static,n+4) do i =3D 1, 8 end do !$omp teams distribute dist_schedule (static,n+4) do i =3D 1, 8 end do !$omp end target end $ gfortran-11-20200531 -c z1.f90 -fopenmp -O2 $ gfortran-11-20210221 -c z1.f90 -fopenmp -O0 $ $ gfortran-11-20210221 -c z1.f90 -fopenmp -O2 during RTL pass: expand z1.f90:3:15: 3 | !$omp target | ^ internal compiler error: in expand_expr_real_1, at expr.c:10279 0x90a988 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10273 0x907ca7 expand_expr ../../gcc/expr.h:282 0x907ca7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10600 0x907528 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10848 0x909312 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10208 0x907ca7 expand_expr ../../gcc/expr.h:282 0x907ca7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10600 0x909312 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10208 0x912dd3 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/expr.c:5886 0x914265 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.c:5622 0x809060 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3910 0x809060 expand_gimple_stmt ../../gcc/cfgexpand.c:4008 0x80e257 expand_gimple_basic_block ../../gcc/cfgexpand.c:6045 0x81098e execute ../../gcc/cfgexpand.c:6729=