This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29070] [4.2 regression] verify_stmts failed (invalid operand to unary operator
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2006 23:39:43 -0000
- Subject: [Bug tree-optimization/29070] [4.2 regression] verify_stmts failed (invalid operand to unary operator
- References: <bug-29070-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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