public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/20718] "+r" constraint with uninitialized value
Date: Thu, 21 Jul 2005 21:57:00 -0000	[thread overview]
Message-ID: <20050721210631.12310.qmail@sourceware.org> (raw)
In-Reply-To: <20050401163947.20718.jakub@gcc.gnu.org>


------- Additional Comments From pbrook at gcc dot gnu dot org  2005-07-21 21:06 -------
gcc4 behaviour seems fine to me.  
  
A slightly simpler example 
 
int foo(int a)  
{  
  int b;  
  asm ("" : "+r" (b) : "r" (a));  
  return b;  
} 
  
Can be (and is) legitimately be transformed into  
  
int foo(int a)  
{  
  asm ("" : "+r" (a) : "r" (a));  
  return a;  
}  
  
In which case it's much more obvious that the compiler is going to allocate 
the same register. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


      parent reply	other threads:[~2005-07-21 21:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-01 16:39 [Bug inline-asm/20718] New: " jakub at gcc dot gnu dot org
2005-04-01 19:19 ` [Bug inline-asm/20718] " pinskia at gcc dot gnu dot org
2005-07-21 21:57 ` pbrook at gcc dot gnu dot org [this message]

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=20050721210631.12310.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).