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

login
register
mail settings
Submitter Marek Polacek
Date March 25, 2014, 4:45 p.m.
Message ID <20140325164528.GT6523@redhat.com>
Download mbox | patch
Permalink /patch/333652/
State New
Headers show

Comments

Marek Polacek - March 25, 2014, 4:45 p.m.
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.


	Marek

Patch

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