ss2001/01/01 bootstrap failure on Sun Solaris 5.7 (Sparc) -- wrongREGISTER_MOVE_COST taken

Wolfgang Bangerth Wolfgang.Bangerth@IWR.Uni-Heidelberg.De
Mon Jan 8 07:19:00 GMT 2001


Bootstrapping fails for me on
  gcc/bin> uname -a
  SunOS atlas 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-4
after
  gcc/bin> ../gcc-20010101/configure --prefix=/home/people/wolf/Config/gcc-20000101
and
  gcc/bin> make bootstrap
here:

  gcc -c  -DIN_GCC  -DSVR4  -g -O2 -W -Wall -Wwrite-strings
    -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
    -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I../../gcc-20010101/gcc
    -I../../gcc-20010101/gcc/. -I../../gcc-20010101/gcc/config
    -I../../gcc-20010101/gcc/../include ../../gcc-20010101/gcc/regclass.c
    -o regclass.o
   ../../gcc-20010101/gcc/regclass.c:432: macro `REGISTER_MOVE_COST' used with only 2 args
 <6 further equivalent errors deleted>
   make[1]: *** [regclass.o] Error 1

The reason is that the three-arg definition of REGISTER_MOVE_COST from
gcc/config/sparc/sparc.h is taken, but the two-arg version (presumably the
one defined at line 45 of the file is meant) is used.

sparc.h is included
                 from ../../gcc-20010101/gcc/config/sparc/sysv4.h:23,
                 from ../../gcc-20010101/gcc/config/sparc/sol2.h:24,
                 from ../../gcc-20010101/gcc/config/sparc/sol2-sld.h:4,
                 from tm.h:10,
                 from ../../gcc-20010101/gcc/config/sparc/xm-sysv4.h:40,
                 from config.h:7,
                 from ../../gcc-20010101/gcc/regclass.c:27

If I can be of any help to find the problem, please do not hesitate to
contact me.

Best regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf






More information about the Gcc-bugs mailing list