Bootstrap failure on sparc-sun-solaris2.7, w/cc, stage1 regclass.c

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Mon May 22 07:58:00 GMT 2000


I'm getting a bootstrap failure on sparc-sun-solaris2.7 in stage1 when
compiling regclass.c with cc:

 > cc -c -DIN_GCC -DSVR4 -g -DHAVE_CONFIG_H -I.
 >    -I../../egcs-CVS20000521/gcc -I../../egcs-CVS20000521/gcc/config
 >    -I../../egcs-CVS20000521/gcc/../include
 >    ../../egcs-CVS20000521/gcc/regclass.c
 > 
 > "../../egcs-CVS20000521/gcc/regclass.c", line 280: left operand must
 > be modifiable lvalue: op "="
 > "../../egcs-CVS20000521/gcc/regclass.c", line 447: cannot recover from
 > 					 previous errors
 > cc: acomp failed for ../../egcs-CVS20000521/gcc/regclass.c
 > make: *** [regclass.o] Error 2

When using gcc for stage1 I instead get a warning, but it makes more
direct sense (at least to me):

 > ../../egcs-CVS20000521/gcc/regclass.c:280: warning: assignment of
 > 					   read-only location


Line 280 of regclass.c invokes CONDITIONAL_REGISTER_USAGE.  I believe
the problem lies in the definition of that macro in sparc.h.  Near the
end of the macro def, we have:

 > reg_names[FRAME_POINTER_REGNUM] = "%i7";

and reg_names is declared as "const char * const reg_names[]"

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


More information about the Gcc-bugs mailing list