public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58775] New: [4.9 Regression] reassoc1 causes an ICE with some bool arithmetic
@ 2013-10-18  1:38 pinskia at gcc dot gnu.org
  2013-10-18  1:54 ` [Bug tree-optimization/58775] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-10-18  1:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58775
           Summary: [4.9 Regression] reassoc1 causes an ICE with some bool
                    arithmetic
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org

When I was trying to forward port my tree-ssa-ifcombine patch I ran into this
ICE.  At first I thought it was a bug in my code and then I looked into it
further and saw that I could reproduce it with a simple testcase on an
unmodified code.  This was found while building mpfr.

Testcase:
void __gmpfr_vasprintf (char * t)
{
  char _4;
  _Bool _5;
  _Bool _6;
  _Bool _7;
  _Bool _9;
  _Bool _10;
  _Bool _11;
  _Bool _12;
  _Bool _13;
  _Bool _14;
  _Bool _15;
  _Bool _16;
  _Bool _17;

  _4 = *t;
  _5 = _4 == 100;
  _6 = _4 == 105;
  _7 = _5 | _6;
  _9 = _4 != 111;
  _10 = !_7;
  _11 = _9 & _10;
  _13 = _4 != 117;
  _12 = _11 & _13;
  _14 = _4 != 120;
  _15 = _12 & _14;
  _16 = _4 != 88;
  _17 = _15 & _16;
  if (_17 == 0)
    f ();

  return;
}


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

end of thread, other threads:[~2013-11-05 15:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18  1:38 [Bug tree-optimization/58775] New: [4.9 Regression] reassoc1 causes an ICE with some bool arithmetic pinskia at gcc dot gnu.org
2013-10-18  1:54 ` [Bug tree-optimization/58775] " pinskia at gcc dot gnu.org
2013-10-18  5:25 ` zhenqiang.chen at linaro dot org
2013-10-18  6:55 ` pinskia at gcc dot gnu.org
2013-10-18  7:03 ` jakub at gcc dot gnu.org
2013-10-18  7:04 ` jakub at gcc dot gnu.org
2013-10-18  8:18 ` zhenqiang.chen at linaro dot org
2013-10-23 16:19 ` jakub at gcc dot gnu.org
2013-11-05 15:05 ` rguenth 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).