ggc-simple.c not K&R C
Jim Wilson
wilsonATcygnus.com
Tue Sep 14 13:24:00 GMT 1999
I tried a SunOS4 build using the Sun C compiler. I got an error while
compiling ggc-simple.c because it uses "long double", which this old K&R C
compiler does not support. I just fixed this by changing it to "double", but
you probably want a better solution. Maybe check __STDC__?
Index: ggc-simple.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ggc-simple.c,v
retrieving revision 1.16
diff -p -r1.16 ggc-simple.c
*** ggc-simple.c 1999/09/12 06:25:44 1.16
--- ggc-simple.c 1999/09/14 20:21:43
*************** struct ggc_any
*** 86,92 ****
union {
char c;
HOST_WIDE_INT i;
! long double d;
} u;
};
--- 86,92 ----
union {
char c;
HOST_WIDE_INT i;
! double d;
} u;
};
More information about the Gcc-bugs
mailing list