This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Further floating-point-emulator cleanups


Zack - I think this patch:

 >      * libgcc2.c: Include float.h and use DBL_MANT_DIG,
 >      FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
 >      depending on HOST_FLOAT_FORMAT to be defined properly.

broke solaris2.7 bootstrap:

 > ./xgcc -B./ -B/usr/local/sparc-sun-solaris2.7/bin/ -isystem
 >   /usr/local/sparc-sun-solaris2.7/include -isystem
 >   /usr/local/sparc-sun-solaris2.7/sys-include -O2 -DIN_GCC -W -Wall
 >   -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
 >   ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
 >   -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../egcc-CVS20020323/gcc
 >   -I../../egcc-CVS20020323/gcc/. -I../../egcc-CVS20020323/gcc/config
 >   -I../../egcc-CVS20020323/gcc/../include -DL_floatdisf -c
 >   ../../egcc-CVS20020323/gcc/libgcc2.c -o libgcc/./_floatdisf.o
 > 
 > In file included from ../../egcc-CVS20020323/gcc/libgcc2.c:1071:
 > /usr/include/float.h:25: parse error before "__flt_rounds"
 > make.solaris2[3]: *** [libgcc/./_floatdisf.o] Error 1

line 25 in float.h is:

 > extern int __flt_rounds(void);

When I look at the .i file I see:

 > # 1071 "../../egcc-CVS20020323/gcc/libgcc2.c"
 > # 1 "/usr/include/float.h" 1 3 4
 > # 16 "/usr/include/float.h" 3 4
 > #pragma ident "@(#)float.h      1.15    97/11/22 SMI"
 > # 25 "/usr/include/float.h" 3 4
 > extern bogus_type __flt_rounds(void);
 > # 1072 "../../egcc-CVS20020323/gcc/libgcc2.c" 2

"int" is defined to "bogus_type" by libgcc2.h because one isn't
supposed to be using the "normal C language built-in type names" at
that point in the file.  I think the solution would be to move float.h
elsewhere.  I don't have time to investigate further until late
tonight or tomorrow.

		--Kaveh
--
Kaveh R. Ghazi			Director of Systems Architecture
ghazi@caip.rutgers.edu		Qwest Global Services


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]