sim: ppc: use common ATTRIBUTE_PACKED macro

Drop local packed attribute with the common ansidecl.h define.
This commit is contained in:
Mike Frysinger 2021-06-15 20:43:22 -04:00
parent 6e57d02532
commit 3547f99a30
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* double.c: Include ansidecls.h.
* dp-bit.c: Change __attribute__ ((packed)) to ATTRIBUTE_PACKED.
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* basics.h (NORETURN): Delete.

View File

@ -22,6 +22,7 @@
#define _DOUBLE_C_
#include "basics.h"
#include "ansidecls.h"
#define SFtype unsigned32
#define DFtype unsigned64

View File

@ -253,13 +253,13 @@ typedef union
struct
{
#ifndef FLOAT_BIT_ORDER_MISMATCH
unsigned int sign:1 __attribute__ ((packed));
unsigned int exp:EXPBITS __attribute__ ((packed));
fractype fraction:FRACBITS __attribute__ ((packed));
unsigned int sign:1 ATTRIBUTE_PACKED;
unsigned int exp:EXPBITS ATTRIBUTE_PACKED;
fractype fraction:FRACBITS ATTRIBUTE_PACKED;
#else
fractype fraction:FRACBITS __attribute__ ((packed));
unsigned int exp:EXPBITS __attribute__ ((packed));
unsigned int sign:1 __attribute__ ((packed));
fractype fraction:FRACBITS ATTRIBUTE_PACKED;
unsigned int exp:EXPBITS ATTRIBUTE_PACKED;
unsigned int sign:1 ATTRIBUTE_PACKED;
#endif
}
bits;