This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for inline-asms and templates
>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:
Richard> On Tue, May 25, 1999 at 03:33:13PM -0700,
Richard> mark@codesourcery.com wrote:
>> + __asm__ __volatile__("addl %1, %0" : "=a" (v) : "b" (i));
Richard> As long as you're build-not-link, you might as well
Richard> change this to something like
Richard> __asm__ __volatile__("" : "=r" (v) : "r" (i));
Thanks. I don't read GNU asm-extensions well enough (at all?) to know
that that's legal everywhere, but it looks plausible!
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com