This is the mail archive of the gcc-patches@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]

fix compile error of extended asm example in gcc manual


Hi,

This trivial patch fixes compile error of a example code for extended
asm instruction.

Thanks.


2009-10-07  Namhyung Kim  <namhyung@gmail.com>

	* doc/extend.texi (Extended Asm): fix compile error of a example code.


diff -ur gcc-4.4.1-orig/gcc/doc/extend.texi gcc-4.4.1/gcc/doc/extend.texi
--- gcc-4.4.1-orig/gcc/doc/extend.texi	2009-08-30 16:21:51.000000000 +0900
+++ gcc-4.4.1/gcc/doc/extend.texi	2009-10-07 09:02:43.000000000 +0900
@@ -4964,7 +4964,7 @@
   int *y = &x;
   int result;
   asm ("magic stuff accessing an 'int' pointed to by '%1'"
-        "=&d" (r) : "a" (y), "m" (*y));
+       : "=&d" (result) : "a" (y), "m" (*y));
   return result;
 @}
 @end smallexample

-- 
Regards,
Namhyung Kim


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