This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap on MSVC broken (real.c ICEs compiling floatdidf()) .. was RE: Bootstrap still broken on ia64
On Wed, Oct 02, 2002 at 09:59:28AM -0700, Donn Terry wrote:
> MSVC treats enum bitfields as signed. [...] struct real_value.class
> is a 2 bit bitfield
I should have remembered this. We even have a mechanism in
place for dealing with it. Fixed thus.
r~
* real.h (struct real_value): Use ENUM_BITFIELD.
Index: real.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/real.h,v
retrieving revision 1.54
diff -u -p -r1.54 real.h
--- real.h 29 Sep 2002 21:23:45 -0000 1.54
+++ real.h 4 Oct 2002 00:41:54 -0000
@@ -42,7 +42,7 @@ enum real_value_class {
struct real_value GTY(())
{
- enum real_value_class class : 2;
+ ENUM_BITFIELD (real_value_class) class : 2;
unsigned int sign : 1;
signed int exp : EXP_BITS;
unsigned long sig[SIGSZ];