http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51007
--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-11-07 12:19:09
UTC ---
Suggested patch for this issue
ChangeLog
* quadmath-imp.h (ieee854_float128): Adjust
for ms-bitfield layout.
Index: quadmath-imp.h
===================================================================
--- quadmath-imp.h (revision 180840)
+++ quadmath-imp.h (working copy)
@@ -48,6 +48,11 @@
__float128 value;
struct
+#ifdef __MINGW32__
+ /* On mingw targets ms-bitfields option is active by default.
+ Therefore enforce gnu-bitfield style. */
+ __attribute__ ((gcc_struct))
+#endif
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned negative:1;
@@ -89,6 +94,10 @@
} words32;
struct
+#ifdef __MINGW32__
+ /* Make sure we are using gnu-style bitfield handling. */
+ __attribute__ ((gcc_struct))
+#endif
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned negative:1;