Although __attribute__ ((aligned)) works well with the typedef declarations, such as
typedef struct __attribute__((__aligned__(8))) A {
xxx ip ;
xxx udp ;
xxx ports ;
} table ;
I have come across statements that say that this is not the case with __attribute__ ((__packed__)) with typedef! I was going through some of the related question and some of them have used the packed attribute with typedef which tallies with our code.
In our code we define
typedef struct {
xxx ip ;
xxx udp ;
xxx ports ;
} __attribute__((packed)) table ;
Does the above declaration make the compiler silently dump the packed attribute declaration?