public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/94180] New: inconsistent operand constraints: "+X"
@ 2020-03-15 12:47 frederic.recoules@univ-grenoble-alpes.fr
  2021-09-14 19:37 ` [Bug rtl-optimization/94180] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: frederic.recoules@univ-grenoble-alpes.fr @ 2020-03-15 12:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94180

            Bug ID: 94180
           Summary: inconsistent operand constraints: "+X"
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: frederic.recoules@univ-grenoble-alpes.fr
  Target Milestone: ---

Consider the following code snippet:

int main (int argc, char *argv[])
{
    int k = 0;
    asm ("" : "+X" (k));
    return k;
}

It produces the following error:

<source>: In function 'main':

<source>:17:5: error: inconsistent operand constraints in an 'asm'

   17 |     asm ("" : "+X" (k));

      |     ^~~

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

end of thread, other threads:[~2024-03-22 22:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-15 12:47 [Bug inline-asm/94180] New: inconsistent operand constraints: "+X" frederic.recoules@univ-grenoble-alpes.fr
2021-09-14 19:37 ` [Bug rtl-optimization/94180] " pinskia at gcc dot gnu.org
2024-03-22 22:46 ` pinskia at gcc dot gnu.org
2024-03-22 22:50 ` pinskia at gcc dot gnu.org
2024-03-22 22:50 ` pinskia 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).