[Bug c/46390] cpuid assembly instruction is optimized away in loop over threads.

edwin at svi dot nl gcc-bugzilla@gcc.gnu.org
Tue Nov 9 12:12:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46390

--- Comment #2 from edwin at svi dot nl 2010-11-09 12:11:56 UTC ---
(In reply to comment #1)
> That's correct, if you don't want it to be moved (or removed in case the result
> is unused), use asm volatile.

Thanks! I wasn't aware of the asm volatile keyword...



More information about the Gcc-bugs mailing list