Commit 744bbef1 by Kai Tietz Committed by Kai Tietz

re PR target/51007 (Quadmath I/O doesn't work on MinGW)

        PR target/51007
        * quadmath-imp.h (ieee854_float128): Adjust
        for ms-bitfield layout.

From-SVN: r181125
parent 5a0626d1
2011-11-07 Kai Tietz <ktietz@redhat.com>
PR target/51007
* quadmath-imp.h (ieee854_float128): Adjust
for ms-bitfield layout.
2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* printf/gmp-impl.h: Adapt path to longlong.h. * printf/gmp-impl.h: Adapt path to longlong.h.
......
...@@ -48,6 +48,11 @@ typedef union ...@@ -48,6 +48,11 @@ typedef union
__float128 value; __float128 value;
struct struct
#ifdef __MINGW32__
/* On mingw targets the ms-bitfields option is active by default.
Therefore enforce gnu-bitfield style. */
__attribute__ ((gcc_struct))
#endif
{ {
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned negative:1; unsigned negative:1;
...@@ -89,6 +94,10 @@ typedef union ...@@ -89,6 +94,10 @@ typedef union
} words32; } words32;
struct struct
#ifdef __MINGW32__
/* Make sure we are using gnu-style bitfield handling. */
__attribute__ ((gcc_struct))
#endif
{ {
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned negative:1; unsigned negative:1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment