[Bug tree-optimization/55687] [4.8 Regression] ICE in hide_evolution_in_other_loops_than_loop, at tree-chrec.c:716

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 14 09:51:00 GMT 2012


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i?86-*-*                    |i?86-*-*, x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-12-14
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-14 09:50:57 UTC ---
Reduced testcase, fails at -O2

typedef struct _IO_FILE FILE;
typedef short gshort;
typedef struct _GString GString;
void verbose_text_loop (void *data)
{
  FILE *dev_vcs;
  char buf[81];
  GString *buf_str;
  gshort i, j;
  while (1)      
    {
      for (i = 1; i <= 7; i++)
        {
          while (__builtin_fgets_unlocked (buf, 81, dev_vcs))
            {
              for (j = 0;   j < __builtin_strlen (buf);   j++)
                if (buf[j] != ' ')    
                  break;   
              for (;   j < __builtin_strlen (buf);   j++)
                g_string_append_c_inline (buf_str, buf[j]); 
            }
        }
    }
}



More information about the Gcc-bugs mailing list