public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)
@ 2020-06-01 19:44 tapplencourt at anl dot gov
  2020-06-02  5:53 ` [Bug fortran/95467] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tapplencourt at anl dot gov @ 2020-06-01 19:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95467
           Summary: ICE in parse_omp_structured_block: OpenMP Offload
                    (target_parallel__simd)
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tapplencourt at anl dot gov
  Target Milestone: ---

Created attachment 48656
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48656&action=edit
compilation.log

Hi, 

The following F90 OpenMP code causea ICE (see log attached): 


PROGRAM target_parallel__simd
    USE OMP_LIB
    implicit none
    INTEGER :: i
    INTEGER :: counter
!$OMP TARGET PARALLEL MAP(TOFROM: counter)
!$OMP SIMD
    DO i = 1 , 262144
counter = 1
    END DO
!$OMP END PARALLEL
END PROGRAM target_parallel__simd

I was able to reproduce it on GCC9.2 and GCC10.0

Don't hesitation if you have any question,
Regards,
Thomas

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

* [Bug fortran/95467] ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)
  2020-06-01 19:44 [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd) tapplencourt at anl dot gov
@ 2020-06-02  5:53 ` marxin at gcc dot gnu.org
  2020-06-02  9:19 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-02  5:53 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2020-06-02

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I see something like:

gcc pr95467.F90 -c -fopenmp -O2
pr95467.F90:11:18:

   11 | !$OMP END PARALLEL
      |                  1
Error: Unexpected !$OMP END PARALLEL statement at (1)
pr95467.F90:12:4:

   12 | END PROGRAM target_parallel__simd
      |    1
Error: Unexpected END statement at (1)
f951: Error: Unexpected end of file in ‘pr95467.F90’

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

* [Bug fortran/95467] ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)
  2020-06-01 19:44 [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd) tapplencourt at anl dot gov
  2020-06-02  5:53 ` [Bug fortran/95467] " marxin at gcc dot gnu.org
@ 2020-06-02  9:19 ` jakub at gcc dot gnu.org
  2020-06-02 14:14 ` tapplencourt at anl dot gov
  2020-06-02 14:15 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-06-02  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, can't reproduce the ICE either.

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

* [Bug fortran/95467] ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)
  2020-06-01 19:44 [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd) tapplencourt at anl dot gov
  2020-06-02  5:53 ` [Bug fortran/95467] " marxin at gcc dot gnu.org
  2020-06-02  9:19 ` jakub at gcc dot gnu.org
@ 2020-06-02 14:14 ` tapplencourt at anl dot gov
  2020-06-02 14:15 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: tapplencourt at anl dot gov @ 2020-06-02 14:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Thomas Applencorut <tapplencourt at anl dot gov> ---
Yes, it's indeed working. It's because I made a typo in the reproducer. I
Didn't copy the version who produce the ICE (should have been !$OMP END TARGET
PARALLEL and not !$OMP END PARALLEL). Sorry about that...

Please find below the correct version (the one who produce an ICE) bellow:


PROGRAM target_parallel__simd
    USE OMP_LIB
    implicit none
    INTEGER :: i
    INTEGER :: counter
!$OMP TARGET PARALLEL MAP(TOFROM: counter)
!$OMP SIMD
    DO i = 1 , 262144
counter = 1
    END DO
!$OMP END TARGET PARALLEL
END PROGRAM target_parallel__simd

And to compile, it's indeed:

gfortran -fopenmp target_parallel__simd.F90

Thanks a lot for looking at it,
Thomas

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

* [Bug fortran/95467] ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)
  2020-06-01 19:44 [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd) tapplencourt at anl dot gov
                   ` (2 preceding siblings ...)
  2020-06-02 14:14 ` tapplencourt at anl dot gov
@ 2020-06-02 14:15 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-02 14:15 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
      Known to work|                            |10.1.0, 11.0

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master with r10-6136-g44a9d801a7080d39.

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

end of thread, other threads:[~2020-06-02 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 19:44 [Bug fortran/95467] New: ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd) tapplencourt at anl dot gov
2020-06-02  5:53 ` [Bug fortran/95467] " marxin at gcc dot gnu.org
2020-06-02  9:19 ` jakub at gcc dot gnu.org
2020-06-02 14:14 ` tapplencourt at anl dot gov
2020-06-02 14:15 ` marxin 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).