public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52086] New: [4.7 Regression] ICE caused by wrong peephole2 for QImode mem += reg followed by test
@ 2012-02-01 21:56 jakub at gcc dot gnu.org
  2012-02-01 21:56 ` [Bug target/52086] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-01 21:56 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52086
           Summary: [4.7 Regression] ICE caused by wrong peephole2 for
                    QImode mem += reg followed by test
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: jakub@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
            Target: i?86-linux


/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-additional-options "-fpic" { target fpic } } */

struct S { char a; char b[100]; };
int bar (void);
int baz (int);

void
foo (struct S *x)
{
  if (bar () & 1)
    {
      char c = bar ();
      baz (4);
      x->a += c;
      while (x->a)
        x->b[c] = bar ();
    }
}

ICEs on i?86-linux (and x86_64-linux -m32) starting with:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179646


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

end of thread, other threads:[~2012-02-02  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 21:56 [Bug target/52086] New: [4.7 Regression] ICE caused by wrong peephole2 for QImode mem += reg followed by test jakub at gcc dot gnu.org
2012-02-01 21:56 ` [Bug target/52086] " jakub at gcc dot gnu.org
2012-02-01 22:01 ` jakub at gcc dot gnu.org
2012-02-02  9:05 ` jakub at gcc dot gnu.org
2012-02-02  9:16 ` 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).