public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/34648]  New: [4.3 Regression] ICE in find_or_generate_expression
@ 2008-01-03 10:31 jakub at gcc dot gnu dot org
  2008-01-03 15:03 ` [Bug tree-optimization/34648] " rguenth at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-03 10:31 UTC (permalink / raw)
  To: gcc-bugs

The following testcase distilled from tinyfugue-5.0 ICEs with
internal compiler error: in find_or_generate_expression, at tree-ssa-pre.c:2255

/* { dg-do compile } */
/* { dg-options "-O2 -fexceptions" } */

extern const unsigned short int **bar (void) __attribute__ ((const));
const char *a;
int b;
char c;

char
foo (int *x)
{
  char r;

  c = '\0';
  if (!b)
    {
      while (((*bar ())[a[*x]] & 0x2000) != 0)
        (*x)++;
      if (a[++(*x)] == '-')
        {
          (*x)++;
          if (a[*x] && !((*bar ())[a[*x]] & 0x2000))
            return '?';
        }
      if (!a[*x] || ((*bar ())[a[*x]] & 0x2000))
        {
          while (((*bar ())[a[*x]] & 0x2000))
            ++(*x);
          return '\0';
        }
    }

  r = a[*x];
  b = a[*x] && !((*bar ())[a[*x]] & 0x2000);
  return r;
}


-- 
           Summary: [4.3 Regression] ICE in find_or_generate_expression
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-01-17 21:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 10:31 [Bug tree-optimization/34648] New: [4.3 Regression] ICE in find_or_generate_expression jakub at gcc dot gnu dot org
2008-01-03 15:03 ` [Bug tree-optimization/34648] " rguenth at gcc dot gnu dot org
2008-01-03 15:08 ` rguenth at gcc dot gnu dot org
2008-01-03 15:34 ` pinskia at gcc dot gnu dot org
2008-01-03 18:37 ` dberlin at gcc dot gnu dot org
2008-01-11  7:33 ` jakub at gcc dot gnu dot org
2008-01-12 18:09 ` rguenth at gcc dot gnu dot org
2008-01-12 19:43 ` rguenth at gcc dot gnu dot org
2008-01-12 19:45 ` dberlin at dberlin dot org
2008-01-12 20:53 ` rguenth at gcc dot gnu dot org
2008-01-16 21:28 ` rguenther at suse dot de
2008-01-16 21:28 ` amacleod at redhat dot com
2008-01-16 21:37 ` amacleod at redhat dot com
2008-01-16 23:07 ` amacleod at redhat dot com
2008-01-17 22:25 ` amacleod at redhat dot com

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).