public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/51767] New: [4.5/4.6/4.7 Regression] ICE with degenerated asm goto
@ 2012-01-05 15:25 jakub at gcc dot gnu.org
  2012-01-05 15:29 ` [Bug rtl-optimization/51767] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51767
           Summary: [4.5/4.6/4.7 Regression] ICE with degenerated asm goto
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
            Target: x86_64-linux


extern void fn1 (void), fn2 (void);

static inline __attribute__((always_inline)) int
foo (int *x, long y)
{
  asm goto ("" : : "r" (x), "r" (y) : "memory" : lab);
  return 0;
lab:
  return 1;
}

void
bar (int *x)
{
  if (foo (x, 23))
    fn1 ();
  else
    fn2 ();

  foo (x, 2);
}

ICEs at -O2 on x86_64-linux.


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

end of thread, other threads:[~2012-02-09 21:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 15:25 [Bug rtl-optimization/51767] New: [4.5/4.6/4.7 Regression] ICE with degenerated asm goto jakub at gcc dot gnu.org
2012-01-05 15:29 ` [Bug rtl-optimization/51767] " jakub at gcc dot gnu.org
2012-01-05 15:46 ` jakub at gcc dot gnu.org
2012-01-05 20:21 ` jakub at gcc dot gnu.org
2012-01-05 20:22 ` [Bug rtl-optimization/51767] [4.5/4.6 " jakub at gcc dot gnu.org
2012-02-09 17:23 ` jakub at gcc dot gnu.org
2012-02-09 21:37 ` [Bug rtl-optimization/51767] [4.5 " jakub at gcc dot gnu.org
2012-02-09 21:47 ` jakub 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).