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]

Re: invalid assembly generated for packed struct containingunpacked struct



Tony --

I think the same thing would probably happen in C if you wrote the
copies by hand, using `SBar*', so that the compiler couldn't know the
SBar is packed If not, I'm not sure why it wouldn't.  I don't think
there's any easy fix -- except to pessimize all loads and stores
involving any type that appears in a packed structure.
 
--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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