bootstrapping fortran fails on mips-linux

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Tue Apr 11 14:52:00 GMT 2000


     > /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?

    Try taking out the "(unsigned int)" cast.  

That will fix the *symptom*, but it'll still be wrong since the proper
type to use can only be determined when the compiler runs since it
depends on the value of -m options: you can't determine it when the
compiler builds.

I noticed this a while ago and said that this is not easy to fix and
only somebody who knows g77 well can do it.


More information about the Gcc-bugs mailing list