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

            Bug ID: 119662
           Summary: [OpenMP] Unhelpful debug line location for append_args
                    call
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-debug
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: sandra at gcc dot gnu.org
  Target Milestone: ---

Assume:

66            is_targetsync = 0;
67            #pragma omp dispatch
68              i = f0_1_tg ();

Currently:

hit Breakpoint 3, check_f0 () at testsuite/libgomp.c/append-args-fr-1.c:66
66            is_targetsync = 0;
(gdb) s
GOMP_interop (device_num=-5, n_init=1, [...]
5357    {

Expected:

the call to GOMP_interop is associated with the '#pragma omp dispatch' line
(could be any item in that line there).

such that a 'step' to that line is possible (i.e. executing the previous line +
stopping) and one can see what is happening.

I have not checked, but 'adjust_args' might have the same issue.

Reply via email to