public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/43998] inline assembler: can't set clobbering for input register Date: Fri, 14 May 2010 07:11:00 -0000 [thread overview] Message-ID: <20100514071049.14245.qmail@sourceware.org> (raw) In-Reply-To: <bug-43998-17114@http.gcc.gnu.org/bugzilla/> ------- Comment #12 from ebotcazou at gcc dot gnu dot org 2010-05-14 07:10 ------- > the compiler may think that "something" do not modify eax. So next assignment > may use eax ( mov eax, x ). So, "it does not make sense to have it as a > clobber" is not correct. does not it ? Andrew was saying that it doesn't make sense to consider input operands as clobbered by an inline asm, generically. > And the second, "Because the way the constraints are implemented inside GCC, > an input constraint cannot overlap with a clobber." - It definitely the bug. No, it isn't, it's clearly stated in the manual: "You may not write a clobber description in a way that overlaps with an input or output operand." -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43998
next prev parent reply other threads:[~2010-05-14 7:11 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-06 6:37 [Bug inline-asm/43998] New: " socketpair at gmail dot com 2010-05-06 7:11 ` [Bug inline-asm/43998] " ubizjak at gmail dot com 2010-05-06 8:07 ` jakub at gcc dot gnu dot org 2010-05-06 11:00 ` socketpair at gmail dot com 2010-05-06 11:31 ` rguenth at gcc dot gnu dot org 2010-05-06 11:41 ` socketpair at gmail dot com 2010-05-06 13:09 ` hjl dot tools at gmail dot com 2010-05-06 13:42 ` socketpair at gmail dot com 2010-05-06 13:56 ` rguenth at gcc dot gnu dot org 2010-05-06 15:04 ` socketpair at gmail dot com 2010-05-14 2:45 ` pinskia at gcc dot gnu dot org 2010-05-14 6:31 ` socketpair at gmail dot com 2010-05-14 7:11 ` ebotcazou at gcc dot gnu dot org [this message] [not found] <bug-43998-4@http.gcc.gnu.org/bugzilla/> 2013-04-08 8:04 ` ilya.lesokhin at gmail dot com
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=20100514071049.14245.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: linkBe 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).