https://bugs.llvm.org/show_bug.cgi?id=33676

            Bug ID: 33676
           Summary: Debug information for OpenMP regions is broken
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 18743
  --> https://bugs.llvm.org/attachment.cgi?id=18743&action=edit
Simple tasking program

For the simple attached tasking program, llvm-ir generated with:

clang -fopenmp task.c -S -emit-llvm -g

generates DILocation entries for the outlined OpenMP regions, that refer to
line 0. As a result, tools like addr2line and gdb fail to resolve the source
line for the OpenMP regions.

For the attached code compiled with Clang 4.0.1, gdb can set a breakpoint in
the task region, but then fails to resolve the source line:

$ clang -fopenmp task.c -g
$ gdb ./a.out
(gdb) b 13
(gdb) r
Breakpoint 1, 0x0000000000400a5d in .omp_task_entry. ()
(gdb) s
Single stepping until exit from function .omp_task_entry.,
which has no line number information.

With current trunk, it can't even stop at line 13. Instead, the breakpoint is
hit right after the task construct.

Report by Joachim Protze.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to