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 target/15540] Accessing arrays in packed structs


------- 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


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