This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix compile error of extended asm example in gcc manual
- From: Namhyung Kim <namhyung at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 Oct 2009 09:21:42 +0900
- Subject: 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