This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bootstrap failure on sparc-sun-solaris2.7, w/cc, stage1 regclass.c
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Bootstrap failure on sparc-sun-solaris2.7, w/cc, stage1 regclass.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 22 May 2000 10:57:58 -0400 (EDT)
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