https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #7 from Richard Biener ---
CCP computes this precisely:
Visiting PHI node: # PT = { D.1842 } (nonlocal, escaped)
p_3 = PHI <&MEM[(void *)&xxx + 2444B](2), p_4(3)>
Argument #0 (2 -> 4 executable)
&MEM[(void *)&xxx + 2444B
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #6 from Markus Trippelsdorf ---
See discussion in PR65709 for a similar issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #5 from Richard Biener ---
(In reply to Fei Yang from comment #4)
> (In reply to Markus Trippelsdorf from comment #2)
> > You're invoking undefined behavior:
>
> test.c:34:12: runtime error: store to
> > misaligned address 0x0040
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #4 from Fei Yang ---
(In reply to Markus Trippelsdorf from comment #2)
> You're invoking undefined behavior:
test.c:34:12: runtime error: store to
> misaligned address 0x00401c8c for type 'unsigned char *', which requires
> 8 byt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
Markus Trippelsdorf changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #2 from Markus Trippelsdorf ---
You're invoking undefined behavior:
test.c:34:12: runtime error: store to misaligned address 0x00401c8c for
type 'unsigned char *', which requires 8 byte alignment
0x00401c8c: note: pointer poi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #1 from Fei Yang ---
Also reproducible with GCC-5 and GCC-6.