bootstrapping fortran fails on mips-linux

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Tue Apr 11 14:03:00 GMT 2000


 > From: Andreas Jaeger <aj@oss.sgi.com>
 > 
 > I'm trying to cross compile from i686-linux to mips-linux and get the
 > following bug:
 > gcc -c -DCROSS_COMPILE -DIN_GCC    -g -W -Wall -Wtraditional  -W -Wall    -I. -I.. -I/home/aj/egcs/gcc/f -I/home/aj/egcs/gcc/f/.. -I/home/aj/egcs/gcc/f/../config -I/home/aj/egcs/gcc/f/../../include /home/aj/egcs/gcc/f/com.c
 > In file included from /home/aj/egcs/gcc/f/com.c:200:
 > /home/aj/egcs/gcc/f/com.h:130: parse error
 > /home/aj/egcs/gcc/f/com.h:133: parse error
 > /home/aj/egcs/gcc/f/com.h:137: #error Cannot find a suitable type for FFECOM_f2cINTEGER
 > /home/aj/egcs/gcc/f/com.h:140: parse error
 > 
 > The problem is that config/mips/mips.h defines:
 > #define LONG_TYPE_SIZE ((unsigned int) (TARGET_LONG64 ? 64 : 32))
 > #define FLOAT_TYPE_SIZE 32
 > 
 > and com.h uses:
 > #if LONG_TYPE_SIZE == FLOAT_TYPE_SIZE
 > 
 > How should this be fixed?
 > Andreas

Try taking out the "(unsigned int)" cast.  I think it was introduced
recently by kenner to silence some signed/unsigned warnings.  But I
recently made the sign-compare warnings smart enough avoid this
without a cast.  (In fact you can probably take out all the casts on
?: exprs introduced in this checkin:

http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/config/mips/mips.h.diff?r1=1.92&r2=1.93

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-bugs mailing list