I am using CCS5 RC with a M4F processor. I have several structs that I am packing using __attribute__ ((packed)) which works except for this struct:
typedef struct _bsd_select_args_t
{
long nfds;
long rdoffset;
long wroffset;
long exoffset;
long tooffset;
unsigned long isblock;
unsigned long rdfd;
unsigned long wrfd;
unsigned long exfd;
unsigned long long timeout;
}__attribute__ ((packed)) bsd_select_args_t;
I get the following error:
#1167 invalid attribute for "struct _bsd_select_args_t" ..... line 125 C/C++ Problem
if I change timeout member from:
unsigned long long timeout;to:
unsigned long timeout;
then it build ok.
I therefore can only assume that the packed attribute is not working for long long type.
Note:
I also have built this file for the MSP430FR5739 without problem so I think it is only an issue with the ARM compiler.