I am trying to activate #pragma pack(push, 8)
on ubuntu 10.4 (8.10 would also be nice), which uses gcc 4.4.3, but I can't get it to work. Is there something more that need to be done?
There is not even a warning if I compile with -Wunknown-pragmas
so gcc seems at least to acknowledge it as a known pragma.
It would be nice to use the pack
pragma as it could pack several structs in a go while the gcc prefered method with __attribute__((aligned(8)))
is pretty messy to handle...(or is there something I'm missing?)