[PATCH] Fix gcc.dg/pragma-align.c

Eric Botcazou ebotcazou@libertysurf.fr
Fri Nov 5 17:55:00 GMT 2004


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



More information about the Gcc-patches mailing list