[Bug inline-asm/63900] memory constrains needlessly doing memory clobber
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 16 02:19:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63900
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to David from comment #0)
> Change MYSIZE to 3 (or 12, 1000, 0xfffffff, etc) we see the value getting
> read from memory before calling printf, indicating the asm performed a full
> clobber (affecting buff2) instead of just clobbering buff as was intended.
So that is just an optimization anyways. So closing as invalid.
More information about the Gcc-bugs
mailing list