https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121569
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually rereading this. the bug seems more likely in STAP_PROBE1 rather than anything else. Having 2 local symbols named the same but in 2 different object files is very much valid thing. The problem is in STAP_PROBE1 really: .ascii "ti(%rip)" # ti That is valid for that TU only. So the bug is in STAP_PROBE1 and nothing else. You can't use STAP_PROBE1 with local variables is basically the issue with the currrent correct definition of the inline-asm.