This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/39375] asm with a "=X" output overwrites the output


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]