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; 5+ 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] 5+ 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; 5+ 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] 5+ messages in thread

* [Bug c/35449] extended asm documentation wrong
       [not found] <bug-35449-4@http.gcc.gnu.org/bugzilla/>
  2014-03-25 16:40 ` mpolacek at gcc dot gnu.org
  2014-03-25 16:51 ` mpolacek at gcc dot gnu.org
@ 2014-03-25 16:52 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-03-25 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


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

* [Bug c/35449] extended asm documentation wrong
       [not found] <bug-35449-4@http.gcc.gnu.org/bugzilla/>
  2014-03-25 16:40 ` mpolacek at gcc dot gnu.org
@ 2014-03-25 16:51 ` mpolacek at gcc dot gnu.org
  2014-03-25 16:52 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-03-25 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 25 16:50:54 2014
New Revision: 208815

URL: http://gcc.gnu.org/viewcvs?rev=208815&root=gcc&view=rev
Log:
    PR c/35449
    * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/extend.texi


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

* [Bug c/35449] extended asm documentation wrong
       [not found] <bug-35449-4@http.gcc.gnu.org/bugzilla/>
@ 2014-03-25 16:40 ` mpolacek at gcc dot gnu.org
  2014-03-25 16:51 ` mpolacek at gcc dot gnu.org
  2014-03-25 16:52 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-03-25 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-03-25
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Missing colon was added in r195471, but the r != result issue is still there. 
Will fix.


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

end of thread, other threads:[~2014-03-25 16:52 UTC | newest]

Thread overview: 5+ 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
     [not found] <bug-35449-4@http.gcc.gnu.org/bugzilla/>
2014-03-25 16:40 ` mpolacek at gcc dot gnu.org
2014-03-25 16:51 ` mpolacek at gcc dot gnu.org
2014-03-25 16:52 ` mpolacek at gcc dot gnu.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).