[Bug lto/122507] [16 regression] undefined reference using inline assembly with LTO
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 15:04:06 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122507
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes
```
__asm__(
".text \n"
".def my_add; .scl 3; .type 32; .endef \n"
//".globl my_add \n" ////////////////////////
"my_add: \n"
" lea eax, [rcx + rdx] \n"
" ret \n"
::":"(my_add)
);
```
But that is currently not implemented with LTO.
More information about the Gcc-bugs
mailing list