[Bug target/15540] Accessing arrays in packed structs
h_jessen at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 25 15:25:00 GMT 2004
------- Additional Comments From h_jessen at hotmail dot com 2004-05-24 19:57 -------
I have looked a bit deeper into this and since I cannot confirm that it works
with 3.3.4 (as of 20040519) I took the liberty to reopen the bug.
I have the following comments to add:
The bug seems to be a duplicate of 7847; it shows the same behaveour (misaligned
data access) under the very same conditions (accessing a struct member that is
an array of packed structs). All my assumptions on the cause and nature of the
bug apply equally to both bugs.
This bug has been resolved with a patch to expr.c (from 1.604 to 1.605) which
explains why 3.4.0 works. I have tried to find a similar patch in the 3.3.x
branch without any luck. A test build has just confirmed to me that the bug is
still present in the 3.3.4 prelease mentioned above.
I'm not sure whether the maintenance policy allows for this patch to be ported
to the 3.3.x branch; but I hope it will.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15540
More information about the Gcc-bugs
mailing list