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/20608] Bus Error - union of structures


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-03-29 19:41 -------
The code is invalid: you're dereferencing a t_m pointer through a cast to
pointer to t_u.  Now the structures don't have the same alignment (t_m is 32-bit
aligned while t_u is 64-bit aligned).  I guess this accidentally worked in 3.4.x
because u was overaligned on the stack.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20608


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