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

--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #7)

>   11:   9c                      pushf
>   12:   58                      pop    %rax
>   13:   48 89 c3                mov    %rax,%rbx  <----- *** here ***
>   16:   fa                      cli
>   17:   e8 00 00 00 00          call   1c
> <x86_gsbase_write_cpu_inactive+0x1c>
>                         18: R_X86_64_PLT32      __wrgsbase_inactive-0x4
>   1c:   80 e7 02                and    $0x2,%bh
>   1f:   74 01                   je     22
> <x86_gsbase_write_cpu_inactive+0x22>
>   21:   fb                      sti
This is still issue with:

xgcc (GCC) 17.0.0 20261119 (experimental) [master r17-6449-ga9f0d2a9c91]

LRA should just use %rbx direcly in "pushf/pop %reg" asm combo.

Reply via email to