This is the mail archive of the gcc-patches@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: [PATCH] Fix gcc.dg/pragma-align.c


> > Because of the "sixteen" tag?
>
> Yes, in fact I used #pragma pack(16) :-)

Sorry, but could you clarify a little?  According to cvs log, you only changed 
the dg line so the testcase was (before my patch) the same as the original 
version commited 4 years ago.  Which was meant to run only on i?86, hence 
probably the 4-byte alignment.

It also occured to me that "sixteen" could be related to something (the size), 
but then how do you interpret:

#pragma pack(1)
struct {
        char one;
        long two;
} two;

#pragma pack(2)
struct {
        char one;
        long two;
} three;

which are 5- and 6-byte large respectively on x86?

-- 
Eric Botcazou


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