This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/29070] [4.2 regression] verify_stmts failed (invalid operand to unary operator



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-13 23:39 -------
here is the reduced testcase for CCP:
static const char OggFLAC__MAPPING_VERSION_MAJOR = 1;
void f(void)
{
  char synthetic_first_packet_body[10];
  char *b = &synthetic_first_packet_body[4];
  memcpy (b, &OggFLAC__MAPPING_VERSION_MAJOR, (1u));
}

Note the DOM Issue might actually be the same as the CCP, depending on if they
share the same fold replacement function.
Here is a reduced testcase for the DOM ICE:
static const char OggFLAC__MAPPING_VERSION_MAJOR = 1;
void f(void)
{
  char synthetic_first_packet_body[10];
  char *b = synthetic_first_packet_body;
  b+=4u;
  memcpy (b, &OggFLAC__MAPPING_VERSION_MAJOR, (1u));
}


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]