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]

[committed][DOC PATCH] Fix typo in example (PR c/35449)


I'm applying this as obvious.

2014-03-25  Marek Polacek  <polacek@redhat.com>

	PR c/35449
	* doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.

diff --git gcc/doc/extend.texi gcc/doc/extend.texi
index 986cc94..c0da713 100644
--- gcc/doc/extend.texi
+++ gcc/doc/extend.texi
@@ -6343,7 +6343,7 @@ int foo ()
   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

	Marek


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