This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/46390] cpuid assembly instruction is optimized away in loop over threads.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 9 Nov 2010 11:59:10 +0000
- Subject: [Bug c/46390] cpuid assembly instruction is optimized away in loop over threads.
- Auto-submitted: auto-generated
- References: <bug-46390-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46390
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-09 11:58:51 UTC ---
That's correct, if you don't want it to be moved (or removed in case the result
is unused), use asm volatile.