From 179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 12 Sep 1994 18:27:48 +0000 Subject: [PATCH] (FLO_union_type): Add packed attribute to `bits'. From-SVN: r8074 --- gcc/config/fp-bit.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 64d46eb81bc..373c2516d77 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; -- 2.30.2