mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 13:33:53 +08:00
sim: ppc: use common ATTRIBUTE_PACKED macro
Drop local packed attribute with the common ansidecl.h define.
This commit is contained in:
parent
6e57d02532
commit
3547f99a30
@ -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.
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define _DOUBLE_C_
|
||||
|
||||
#include "basics.h"
|
||||
#include "ansidecls.h"
|
||||
|
||||
#define SFtype unsigned32
|
||||
#define DFtype unsigned64
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user