bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/28984] New: Bad __collector_getpc implementation


From: hjl.tools at gmail dot com
Subject: [Bug gprofng/28984] New: Bad __collector_getpc implementation
Date: Mon, 21 Mar 2022 01:15:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28984

            Bug ID: 28984
           Summary: Bad __collector_getpc implementation
           Product: binutils
           Version: 2.39 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gprofng
          Assignee: vladimir.mezentsev at oracle dot com
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

libcollector/libcol_util.h has

static __attribute__ ((always_inline)) inline void *
__collector_getpc ()
{
  void *r; 
  __asm__ __volatile__(
#if WSIZE(32)
          "     call  1f \n"
                       "1: popl  %0 \n"
#else
          "     call  1f \n"
                       "1: popq  %0 \n"
#endif
          : "=r" (r)); // output
  return r;
}

But x86-64 supports "lea (%rip), %reg".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]