public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440
@ 2020-05-16 14:01 john.donners at atos dot net
2020-05-18 5:47 ` [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537 marxin at gcc dot gnu.org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: john.donners at atos dot net @ 2020-05-16 14:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Bug ID: 95163
Summary: internal compiler error: in
gimplify_adjust_omp_clauses, at gimplify.c:10440
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: john.donners at atos dot net
CC: jakub at gcc dot gnu.org
Target Milestone: ---
Created attachment 48548
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48548&action=edit
ICE with combined map-to and firstprivate
Hi,
gfortran (release 10.1.0 and commit f5b461d4) crashes with an internal compiler
error when compiling the attached program:
$ gfortran -Wall -Wextra -fopenmp bug_mapto_firstprivate.f90
bug_mapto_firstprivate.f90:34:0:
34 | !$omp firstprivate(rsss)
|
internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440
0xbab84d gimplify_adjust_omp_clauses
../../gcc/gcc/gimplify.c:10438
0xbcef50 gimplify_omp_workshare
../../gcc/gcc/gimplify.c:12810
0xbada45 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gcc/gimplify.c:14116
0xbb2836 gimplify_stmt(tree_node**, gimple**)
../../gcc/gcc/gimplify.c:6802
0xbae38b gimplify_statement_list
../../gcc/gcc/gimplify.c:1856
0xbae38b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gcc/gimplify.c:14031
0xbb2836 gimplify_stmt(tree_node**, gimple**)
../../gcc/gcc/gimplify.c:6802
0xbb3b8d gimplify_bind_expr
../../gcc/gcc/gimplify.c:1411
0xbaf323 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gcc/gimplify.c:13788
0xbb2836 gimplify_stmt(tree_node**, gimple**)
../../gcc/gcc/gimplify.c:6802
0xbb4b13 gimplify_body(tree_node*, bool)
../../gcc/gcc/gimplify.c:14836
0xbb5187 gimplify_function_tree(tree_node*)
../../gcc/gcc/gimplify.c:14990
0x9d900f cgraph_node::analyze()
../../gcc/gcc/cgraphunit.c:671
0x9dc713 analyze_functions
../../gcc/gcc/cgraphunit.c:1231
0x9dd4d2 symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2975
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/software/compilers/gcc-offload/f5b461d4/gnu-9.2.0/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:x86_64-intelmicemul-linux-gnu
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure
--with-gmp=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-mpfr=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-mpc=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-isl=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--enable-offload-targets=nvptx-none,x86_64-intelmicemul-linux-gnu
--with-cuda-driver-include=/usr/local/cuda-10.2/include
--with-cuda-driver-lib=/usr/local/cuda-10.2/lib64 --disable-bootstrap
--disable-multilib --enable-languages=c,c++,fortran,lto
--prefix=/software/compilers/gcc-offload/f5b461d4/gnu-9.2.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200516 (experimental) (GCC)
Cheers,
John
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
@ 2020-05-18 5:47 ` marxin at gcc dot gnu.org
2020-05-18 5:58 ` rguenth at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-18 5:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.0, 7.5.0
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Summary|internal compiler error: in |[8/9/10/11 Regression] ICE
|gimplify_adjust_omp_clauses |in
|, at gimplify.c:10440 |gimplify_adjust_omp_clauses
| |, at gimplify.c:10440 since
| |r7-4447-gb4c3a85be9658537
Last reconfirmed| |2020-05-18
Known to work| |6.4.0
Version|unknown |7.5.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
2020-05-18 5:47 ` [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537 marxin at gcc dot gnu.org
@ 2020-05-18 5:58 ` rguenth at gcc dot gnu.org
2020-05-25 11:59 ` [Bug middle-end/95163] " jakub at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-18 5:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
Keywords| |ice-on-valid-code
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
2020-05-18 5:47 ` [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537 marxin at gcc dot gnu.org
2020-05-18 5:58 ` rguenth at gcc dot gnu.org
@ 2020-05-25 11:59 ` jakub at gcc dot gnu.org
2020-05-25 12:15 ` john.donners at atos dot net
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-25 11:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Component|libgomp |middle-end
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The testcase is not valid, target construct accepts both map and firstprivate
clauses and specifying both mapping and data-sharing for the same list item is
invalid, you need to choose one.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (2 preceding siblings ...)
2020-05-25 11:59 ` [Bug middle-end/95163] " jakub at gcc dot gnu.org
@ 2020-05-25 12:15 ` john.donners at atos dot net
2020-05-25 12:25 ` [Bug fortran/95163] " jakub at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: john.donners at atos dot net @ 2020-05-25 12:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
--- Comment #2 from John Donners <john.donners at atos dot net> ---
hmm, indeed I found the applicable text in the standard (2.14) as well:
"The effect of the firstprivate clause is as if it is applied to one or more
constructs as follows: To the target construct if it is among the constituent
constructs and the same list item does not appear in a lastprivate or map
clause."
Apologies for the invalid code. Splitting the two works without problems.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (3 preceding siblings ...)
2020-05-25 12:15 ` john.donners at atos dot net
@ 2020-05-25 12:25 ` jakub at gcc dot gnu.org
2020-05-25 13:06 ` burnus at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-25 12:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
Component|middle-end |fortran
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
integer :: i
i = 1
!$omp target map(tofrom: i) firstprivate (i)
i = i + 1
!$omp end target
end
For C/C++,
void
foo (int i)
{
#pragma omp target map(tofrom: i) firstprivate (i)
i++;
}
void
bar (int i)
{
#pragma omp target firstprivate (i) map(tofrom: i)
i++;
}
is rejected already in the FE, so I think we just miss rejecting it in the
Fortran FE.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (4 preceding siblings ...)
2020-05-25 12:25 ` [Bug fortran/95163] " jakub at gcc dot gnu.org
@ 2020-05-25 13:06 ` burnus at gcc dot gnu.org
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2020-05-25 13:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Likewise crashing is:
!$omp target map(tofrom: i) map(i)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (5 preceding siblings ...)
2020-05-25 13:06 ` burnus at gcc dot gnu.org
@ 2021-01-14 8:49 ` rguenth at gcc dot gnu.org
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-14 8:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Keywords| |accepts-invalid
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (6 preceding siblings ...)
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
@ 2021-01-14 8:49 ` rguenth at gcc dot gnu.org
2021-05-14 9:53 ` [Bug fortran/95163] [9/10/11/12 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-14 8:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P4
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [9/10/11/12 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (7 preceding siblings ...)
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
@ 2021-05-14 9:53 ` jakub at gcc dot gnu.org
2021-06-01 8:17 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [9/10/11/12 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (8 preceding siblings ...)
2021-05-14 9:53 ` [Bug fortran/95163] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:17 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug fortran/95163] [10/11/12/13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [10/11/12/13 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (9 preceding siblings ...)
2021-06-01 8:17 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:42 ` rguenth at gcc dot gnu.org
2022-06-28 10:40 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug fortran/95163] [11/12/13/14 " rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [10/11/12/13 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (10 preceding siblings ...)
2022-05-27 9:42 ` [Bug fortran/95163] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:40 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug fortran/95163] [11/12/13/14 " rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/95163] [11/12/13/14 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
` (11 preceding siblings ...)
2022-06-28 10:40 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:37 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-07-07 10:37 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 14:01 [Bug libgomp/95163] New: internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440 john.donners at atos dot net
2020-05-18 5:47 ` [Bug libgomp/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537 marxin at gcc dot gnu.org
2020-05-18 5:58 ` rguenth at gcc dot gnu.org
2020-05-25 11:59 ` [Bug middle-end/95163] " jakub at gcc dot gnu.org
2020-05-25 12:15 ` john.donners at atos dot net
2020-05-25 12:25 ` [Bug fortran/95163] " jakub at gcc dot gnu.org
2020-05-25 13:06 ` burnus at gcc dot gnu.org
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
2021-01-14 8:49 ` rguenth at gcc dot gnu.org
2021-05-14 9:53 ` [Bug fortran/95163] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:17 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug fortran/95163] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:40 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug fortran/95163] [11/12/13/14 " rguenth 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).