packed struct attribute?

Hi - is there any support in PGI’s current or future planned versions for the GCC packed struct attribute? It’s creating problems for us when linking code built using GCC and PGI that pass a struct across the interface (even using a level of indirection), eg:

{bigben§ ~/UPC/code} cat packed-struct.c
#include <stdio.h>
typedef struct {
int x;
char y;
int z;
} attribute((packed)) event_t;
int main() {
printf("%i\n",sizeof(event_t));
}
{bigben§ ~/UPC/code} gcc packed-struct.c && ./a.out
9
{bigben§ ~/UPC/code} pgcc packed-struct.c && ./a.out
12

Thanks…

Hi Bonachea,

We’re working towards adding more support for these types of GNU extensions and the packed attribute should be available in a future release. However, I don’t know specifically when it will be added.

Thanks,
Mat