Skip to content

[flang][OpenMP] The compilation fails with nowait on target construct with -g. #125088

@abidh

Description

@abidh

Please see the testcase below.

program nowait_reproducer
   implicit none
   real x

   !$omp target map(tofrom: x) nowait
      x = x + 1
   !$omp end target

end program nowait_reproducer

This is what I get when I try to compile it with -g.

flang -g -O0 test.f90 -fopenmp
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
inlinable function call in a function with debug info must have a !dbg location
  call void @__omp_offloading_10302_4986ae0__QQmain_l10(ptr %1)
error: failed to create the LLVM module

Metadata

Metadata

Assignees

Labels

flang:openmpllvm:openmpirbuilderIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions