This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15540] Accessing arrays in packed structs
- From: "h_jessen at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2004 19:57:26 -0000
- Subject: [Bug target/15540] Accessing arrays in packed structs
- References: <20040519130812.15540.h_jessen@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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