public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48552] New: ICE with void type expressions in asm inputs/outputs
@ 2011-04-11 12:14 jakub at gcc dot gnu.org
  2011-04-11 12:28 ` [Bug c/48552] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-11 12:14 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE with void type expressions in asm inputs/outputs
           Product: gcc
           Version: 4.6.0
               URL: https://bugzilla.redhat.com/show_bug.cgi?id=693986
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: jakub@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org


struct S;

void
f1 (void *x)
{
  __asm volatile ("" : : "r" (*x));
}

void
f2 (void *x)
{
  __asm volatile ("" : "=r" (*x));
}

void
f3 (void *x)
{
  __asm volatile ("" : : "m" (*x));
}

void
f4 (void *x)
{
  __asm volatile ("" : "=m" (*x));
}

void
f5 (void *x)
{
  __asm volatile ("" : : "g" (*x));
}

void
f6 (void *x)
{
  __asm volatile ("" : "=g" (*x));
}

void
f7 (struct S *x)
{
  __asm volatile ("" : : "r" (*x));
}

void
f8 (struct S *x)
{
  __asm volatile ("" : "=r" (*x));
}

void
f9 (void *x)
{
  __asm ("" : : "r" (*x));
}

void
f10 (void *x)
{
  __asm ("" : "=r" (*x));
}

void
f11 (void *x)
{
  __asm ("" : : "m" (*x));
}

void
f12 (void *x)
{
  __asm ("" : "=m" (*x));
}

void
f13 (void *x)
{
  __asm ("" : : "g" (*x));
}
void
f14 (void *x)
{
  __asm ("" : "=g" (*x));
}

void
f15 (struct S *x)
{
  __asm ("" : : "r" (*x));
}

void
f16 (struct S *x)
{
  __asm ("" : "=r" (*x));
}

ICEs back to 3.2-ish gcc at least, correctly errors out with C++.


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

end of thread, other threads:[~2021-09-10 23:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-11 12:14 [Bug c/48552] New: ICE with void type expressions in asm inputs/outputs jakub at gcc dot gnu.org
2011-04-11 12:28 ` [Bug c/48552] " jakub at gcc dot gnu.org
2011-04-12  6:27 ` jakub at gcc dot gnu.org
2011-04-12  7:04 ` jakub at gcc dot gnu.org
2021-09-10 23:14 ` pinskia at gcc dot gnu.org
2021-09-10 23:15 ` 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).