This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ggc-simple.c uses `long double'
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: ggc-simple.c uses `long double'
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 13 Sep 1999 17:57:55 -0400 (EDT)
- Cc: mark at codesourcery dot com, rth at cygnus dot com
I'm having trouble compiling ggc-simple.c on SunOS4 using cc
because the file uses `long double':
> /* A generic allocation, with an external mark bit. */
>
> struct ggc_any
> {
> struct ggc_any *chain;
> unsigned int magic_mark;
>
> /* Make sure the data is reasonably aligned. */
> union {
> char c;
> HOST_WIDE_INT i;
> long double d;
> } u;
> };
It looks like the code only references the char element `c' and the
rest is only there for alignment. If true, can we get rid of the
`long double' and use HOST_WIDEST_INT (WIDEST, not WIDE) for element
`i' instead? Would that be sufficient alignment?
Otherwise, perhaps we need the AC_C_LONG_DOUBLE autoconf test?
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions