This is the mail archive of the gcc-bugs@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]

Re: bootstrapping fortran fails on mips-linux


On Tue, Apr 11, 2000 at 05:01:44PM -0400, Kaveh R. Ghazi wrote:
>  > 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
That fixed this particular problem but I also do see other problems.  The whole
MIPS/Linux compiler seems to be broken.  I'll investigate as time permits and will send
patches and bug reports.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de
    currently: aj@oss.sgi.com

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