aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/dp-bit.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-15 20:43:22 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-16 01:11:08 -0400
commit3547f99a3092d262a23c120aa8d97945ccf3eeb6 (patch)
tree4bf858236ad3a0f659e79969ec540198f9e1aabc /sim/ppc/dp-bit.c
parent6e57d0253200f0ad4f770fe2a82ab1995e6e5bc0 (diff)
downloadgdb-3547f99a3092d262a23c120aa8d97945ccf3eeb6.zip
gdb-3547f99a3092d262a23c120aa8d97945ccf3eeb6.tar.gz
gdb-3547f99a3092d262a23c120aa8d97945ccf3eeb6.tar.bz2
sim: ppc: use common ATTRIBUTE_PACKED macro
Drop local packed attribute with the common ansidecl.h define.
Diffstat (limited to 'sim/ppc/dp-bit.c')
-rw-r--r--sim/ppc/dp-bit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/ppc/dp-bit.c b/sim/ppc/dp-bit.c
index dce5114..25d3627 100644
--- a/sim/ppc/dp-bit.c
+++ b/sim/ppc/dp-bit.c
@@ -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;