[Bug middle-end/55331] [4.6/4.7/4.8 Regression] ICE: SIGSEGV in substitute_and_fold with -O2 -fno-tree-fre

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 15 11:52:00 GMT 2012


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-15 11:52:43 UTC ---
Hand-reduced testcase for -O2 -fno-tree-fre

struct A {};

void
foo (A *p, bool x)
{
  A a;
  char *e = (char *) (&a + 1);
  if (x)
    __builtin_memmove (p, &a, e - (char *) &a);
}



More information about the Gcc-bugs mailing list