[Bug rtl-optimization/55719] [4.8 Regression] ICE: Segmentation fault

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 9 17:48:00 GMT 2013


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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

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

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2013-01-09 17:48:10 UTC ---
My brain's too small for such a big testcase.  Further reduced testcase, and
reduced arguments.

// ./cc1 -quiet -O2 a.c  -march=z10   -fPIC -I /tmp
static int glob_a, glob_b;

int foobar()
{
  char buffer[100];

  glob_a = 0;
  glob_b = 0;

  bar (buffer);

  __builtin_memcpy(buffer, "abc", 3);

  buffer[7] = (char)(glob_a >> 8);
  buffer[11] = (char)glob_b;
  buffer[13] = (char)glob_a;
  buffer[17] = (char)(glob_a >> 8);

  return foo(0, 0, 0, 0);
}



More information about the Gcc-bugs mailing list