public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kinetik at flim dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/32971] Inline asm with offset addressing fails to compile in 4.0+ without -O
Date: Fri, 03 Aug 2007 05:11:00 -0000	[thread overview]
Message-ID: <20070803051114.25989.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32971-10461@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from kinetik at flim dot org  2007-08-03 05:11 -------
(In reply to comment #2)
>   asm ("lea %1(%2), %0"
>        : "=r" (i)
>        : "i" (offsetof(struct coord, y)),
>          "r" (c)
>        : "memory");

Bug #29357 suggests that I need to use %c1 rather than %1 here, and indeed this
works and I believe this is the correct solution.

I'm don't know enough to know if the original reason I opened the bug is still
valid (i.e. it's a regression), or if I'm just being bitten by behaviour
changes when I'm abusing the meaning of the operand (I suspect the latter), so
I'll leave the bug open for someone to review and confirm or close.


-- 


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


  parent reply	other threads:[~2007-08-03  5:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03  4:47 [Bug inline-asm/32971] New: " kinetik at orcon dot net dot nz
2007-08-03  4:48 ` [Bug inline-asm/32971] " kinetik at orcon dot net dot nz
2007-08-03  4:51 ` kinetik at orcon dot net dot nz
2007-08-03  5:11 ` kinetik at flim dot org [this message]
2007-08-03 12:17 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070803051114.25989.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).