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]

Re: [Bug target/32000] struct-layout-1.exp fails at -O2


No the compiler should be able to load the packed struct no matter what. If that means doing byte by byte loads then so be it.
-- Pinski


Sent from my iPhone

On Mar 25, 2008, at 7:53, "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org > wrote:



------- Comment #2 from hjl dot tools at gmail dot com 2008-03-25 14:53 -------
I think gcc should issue an error for


typedef struct { _Decimal128 f __attribute__((packed)); } packed;
typedef struct { __m128 f __attribute__((packed)); } packed;

when there is a hardware alignment requirement on a field to be
packed.


--



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




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