[PATCH] D76336: [DWARF] Emit DW_AT_call_pc for tail calls

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 20 01:35:38 PDT 2020


djtodoro added a comment.

In D76336#1932313 <https://reviews.llvm.org/D76336#1932313>, @dblaikie wrote:

> >> @dblaikie wrote:
>
> But such is life/some of that has no obvious solution. Wonder what GCC does.


Oh yes, I agree :) GCC does the same. It generates the info only in the case of "optimized" code...



================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:873
       const MCSymbol *PCAddr =
           (IsTail && !tuneForGDB())
               ? nullptr
----------------
DWARF5 + GDB tuning will have both call_pc and return_pc?

I think we should ask here like this:
`(IsTail && !useGNUAnalogForDwarf5Feature(DD))...`




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76336/new/

https://reviews.llvm.org/D76336





More information about the llvm-commits mailing list