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

--- Comment #3 from EoD <EoD at xmw dot de> ---
(In reply to Uroš Bizjak from comment #1)
> The testcase violates redzone.
> 
> Either add rsp to the list of clobbered registers, or compile with
> -fno-red-zone.
> 
> OTOH, you should just include <cpuid.h> and use __cpuid.

(In reply to Jakub Jelinek from comment #2)
> If it is __x86_64__ only, then the push/pop is totally useless, %rbx is like
> any other reg (for __i386__ too if not pic or when using a recent gcc).
> So just asm ("cpuid" : "=a" (*a), "=b" (*b), "=c" (*c), "=d" (*d) : "0"
> (op));
> Or you could e.g. xchg %%ebx, %%esi and back for __i386__ instead of the
> push/pop, or, if for whatever weird reason you don't want to clobber %rbx
> for __x86_64__, you could e.g. subtract the red zone size from %rsp first,
> then push and after poping add back.

Thanks for your fast replies! I have forwarded the issues to the pulseaudio
team: https://bugs.freedesktop.org/show_bug.cgi?id=103656

Reply via email to