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

Fangrui Song <i at maskray dot me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray dot me

--- Comment #8 from Fangrui Song <i at maskray dot me> ---
Where shall we place .cfi_startproc?

Clang HEAD (and clang 10)'s placement is:

foo:
.loc 1 3 0      # line number
.cfi_startproc  # CFI
  bti c
.Lpatch0:       # __patchable_function_entries label
  nop

Not placing .cfi_startproc (as GCC current does) will make addr2line on the
function entry address print ??:0

For M>0, clang does not attach line number information for NOPs before the
function entry label.

Reply via email to