diff options
author | Doug Evans <dje@gnu.org> | 1994-09-12 18:27:48 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1994-09-12 18:27:48 +0000 |
commit | 179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9 (patch) | |
tree | 83ab7fba5ffadee1a086f7028ec0fea1ee6d4b83 /gcc | |
parent | 0e227018ba8ecb22de4c5e9b99ff73fdfffcd318 (diff) | |
download | gcc-179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9.zip gcc-179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9.tar.gz gcc-179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9.tar.bz2 |
(FLO_union_type): Add packed attribute to `bits'.
From-SVN: r8074
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/fp-bit.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 64d46eb..373c2516 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -235,8 +235,7 @@ typedef struct } fraction; } fp_number_type; -typedef -union +typedef union { FLO_type value; #ifdef _DEBUG_BITFLOAT @@ -245,18 +244,17 @@ union struct { #ifndef FLOAT_BIT_ORDER_MISMATCH - unsigned int sign:1; - unsigned int exp:EXPBITS; - fractype fraction:FRACBITS; + unsigned int sign:1 __attribute__ ((packed)); + unsigned int exp:EXPBITS __attribute__ ((packed)); + fractype fraction:FRACBITS __attribute__ ((packed)); #else - fractype fraction:FRACBITS; - unsigned int exp:EXPBITS; - unsigned int sign:1; + fractype fraction:FRACBITS __attribute__ ((packed)); + unsigned int exp:EXPBITS __attribute__ ((packed)); + unsigned int sign:1 __attribute__ ((packed)); #endif } bits; } - FLO_union_type; |