public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr
@ 2021-01-27 18:36 xw111luoye at gmail dot com
  2021-01-27 18:37 ` [Bug fortran/98858] " xw111luoye at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: xw111luoye at gmail dot com @ 2021-01-27 18:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98858
           Summary: OpenMP offload target data ICE at use_device_ptr
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xw111luoye at gmail dot com
  Target Milestone: ---

Getting ICE


yeluo@ryzen-box:~/opt/openmp-target/hands-on/tests/fortran_use_device_ptr$
gfortran -fopenmp test_use_device_ptr_target.f90 
test_use_device_ptr_target.f90:15:41:

   15 |       !$omp target data use_device_ptr(a)
      |                                         ^
internal compiler error: Segmentation fault
0xf55ee3 crash_signal

source code at.
https://github.com/ye-luo/openmp-target/blob/master/hands-on/tests/fortran_use_device_ptr/test_use_device_ptr_target.f90

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

* [Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr
  2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
@ 2021-01-27 18:37 ` xw111luoye at gmail dot com
  2021-01-29 14:20 ` burnus at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: xw111luoye at gmail dot com @ 2021-01-27 18:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ye Luo <xw111luoye at gmail dot com> ---
GNU Fortran (GCC) 11.0.0 20210127 (experimental)

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

* [Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr
  2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
  2021-01-27 18:37 ` [Bug fortran/98858] " xw111luoye at gmail dot com
@ 2021-01-29 14:20 ` burnus at gcc dot gnu.org
  2021-03-11 14:31 ` burnus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-01-29 14:20 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 50089
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50089&action=edit
Testcase linked-to in comment 0

Confirmed with current GCC mainline (GCC 11).

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

* [Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr
  2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
  2021-01-27 18:37 ` [Bug fortran/98858] " xw111luoye at gmail dot com
  2021-01-29 14:20 ` burnus at gcc dot gnu.org
@ 2021-03-11 14:31 ` burnus at gcc dot gnu.org
  2021-03-12 15:33 ` cvs-commit at gcc dot gnu.org
  2021-03-15 13:23 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-03-11 14:31 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-03-11

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-March/566609.html

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

* [Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr
  2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
                   ` (2 preceding siblings ...)
  2021-03-11 14:31 ` burnus at gcc dot gnu.org
@ 2021-03-12 15:33 ` cvs-commit at gcc dot gnu.org
  2021-03-15 13:23 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-12 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:0b5437510c13dc0879349a4f259c800d2ce02eb2

commit r11-7648-g0b5437510c13dc0879349a4f259c800d2ce02eb2
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Mar 12 16:33:02 2021 +0100

    Fortran/OpenMP: Fix use_device_{ptr,addr} with assumed-size array [PR98858]

    gcc/ChangeLog:

            PR fortran/98858
            * gimplify.c (omp_add_variable): Handle NULL_TREE as size
            occuring for assumed-size arrays in use_device_{ptr,addr}.

    libgomp/ChangeLog:

            PR fortran/98858
            * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.

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

* [Bug fortran/98858] OpenMP offload target data ICE at use_device_ptr
  2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
                   ` (3 preceding siblings ...)
  2021-03-12 15:33 ` cvs-commit at gcc dot gnu.org
@ 2021-03-15 13:23 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-03-15 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED on mainline (GCC 11).

Thanks for the report!

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

end of thread, other threads:[~2021-03-15 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 18:36 [Bug fortran/98858] New: OpenMP offload target data ICE at use_device_ptr xw111luoye at gmail dot com
2021-01-27 18:37 ` [Bug fortran/98858] " xw111luoye at gmail dot com
2021-01-29 14:20 ` burnus at gcc dot gnu.org
2021-03-11 14:31 ` burnus at gcc dot gnu.org
2021-03-12 15:33 ` cvs-commit at gcc dot gnu.org
2021-03-15 13:23 ` burnus 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).