UNITS_PER_WORD change wrong on MIPS

Andreas Jaeger aj@suse.de
Sun Mar 26 23:50:00 GMT 2000


On MIPS-Linux, I get with the current CVS version the following error
messages trying to bootstrap:

  ./xgcc -B/opt/gcc-2.96/mipsel-unknown-linux-gnu/bin/ -B./ -I/opt/gcc-2.96/mipsel-unknown-linux-gnu/include -O2   -DIN_GCC    -g -W -Wall -Wtraditional -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I/home/sites/home/users/aj/builds/gcc/gcc -I/home/sites/home/users/aj/builds/gcc/gcc/config -I/home/sites/home/users/aj/builds/gcc/gcc/../include -c -DL${name} \
       /home/sites/home/users/aj/builds/gcc/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ` if [ -f /home/sites/home/users/aj/builds/build-gcc-2.96/build/gcc/../binutils/ar ] ; then echo /home/sites/home/users/aj/builds/build-gcc-2.96/build/gcc/../binutils/ar ; else if [ "mipsel-unknown-linux-gnu" = "mipsel-unknown-linux-gnu" ] ; then echo ar; else t='s,^,mipsel-unknown-linux-gnu-,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
In file included from /home/sites/home/users/aj/builds/gcc/gcc/libgcc2.c:52:
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:90:18: syntax error in #if
<command line>: unterminated `#if' conditional
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:94:18: syntax error in #if
<command line>: unterminated `#if' conditional
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:99:6: `#endif' not within a conditional
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:152:18: syntax error in #if
<command line>: unterminated `#if' conditional
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:162:5: `#elif' not within a conditional
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:163:39: warning: `W_TYPE_SIZE' redefined
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:153:19: warning: this is the location of the previous definition
/home/sites/home/users/aj/builds/gcc/gcc/libgcc2.h:164:20: warning: `Wtype' redefined
[...]

The problem seems to be the definition to UNITS_PER_WORD in
config/mips/mips.h as:
#define UNITS_PER_WORD ((unsigned int) (TARGET_64BIT ? 8 : 4))

Removing the (unsigned int) fixed the problem.  But what's the proper
fix?

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de


More information about the Gcc-bugs mailing list