This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39375] asm with a "=X" output overwrites the output
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Jan 2012 04:16:52 +0000
- Subject: [Bug c/39375] asm with a "=X" output overwrites the output
- Auto-submitted: auto-generated
- References: <bug-39375-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39375
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-02 04:16:52 UTC ---
__asm__ ("xxx" : "+X" (sum));
Is most likely what you want to use. This says the sum might be clobbered but
it might not be as the same value is used if it was not.