public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35449]  New: extended asm documentation wrong
@ 2008-03-03 23:48 mrs at apple dot com
  2008-03-04  9:32 ` [Bug c/35449] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mrs at apple dot com @ 2008-03-03 23:48 UTC (permalink / raw)
  To: gcc-bugs

In doc/extend.texi we have:

int foo ()
@{
  int x = 42;
  int *y = &x;
  int result;
  asm ("magic stuff accessing an 'int' pointed to by '%1'"
        "=&d" (r) : "a" (y), "m" (*y));
  return result;
@}

two problems, r != result.  Second problem, there should be a : before the
output constraint.

The current docs on the web site are unchanged.


-- 
           Summary: extended asm documentation wrong
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrs at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35449


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/35449] extended asm documentation wrong
  2008-03-03 23:48 [Bug c/35449] New: extended asm documentation wrong mrs at apple dot com
@ 2008-03-04  9:32 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-04  9:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-03-04 09:31 -------
Patch welcome.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35449


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-04  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 23:48 [Bug c/35449] New: extended asm documentation wrong mrs at apple dot com
2008-03-04  9:32 ` [Bug c/35449] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).