Subject: Re: EGCS 1.1 UPDATE rev. 2
To: Todd Vierling <tv@pobox.com>
From: Tsubai Masanari <tsubai@iri.co.jp>
List: tech-toolchain
Date: 08/18/1998 22:13:45
>- powerpc: Set up but not yet tested.  I need volunteer(s).

On PowerPC platform,

* In GCC, MACHINE_GNU_ARCH should not be "powerpc" but "rs6000".

* I got following errors (warnings):

cc -O  -Werror  -I/aaa/src/gnu/usr.bin/egcs/common/../arch  -I/aaa/src/gnu/usr.
bin/egcs/common/../arch/powerpc  -I/aaa/src/gnu/usr.bin/egcs/common  -I/aaa/src
/gnu/usr.bin/egcs/common/../../../dist/gcc  -I/aaa/src/gnu/usr.bin/egcs/common/
../../../dist/gcc/config  -DIN_GCC -DNETBSD_NATIVE -DHAVE_CONFIG_H -DPREFIX=\"/
usr\"  -DDEFAULT_TARGET_VERSION=\"egcs-2.91.54\"  -DDEFAULT_TARGET_MACHINE=\"rs
6000-netbsd\"  -DSTANDARD_STARTFILE_PREFIX=\"/usr/lib/\"  -DSTANDARD_EXEC_PREFI
X=\"/usr/libexec/\"  -DTOOLDIR_BASE_PREFIX=\"/usr/libexec/\" -DTARGET_NAME=\"rs
6000-netbsd\" -c /aaa/src/gnu/usr.bin/egcs/common/../../../dist/gcc/explow.c
cc1: warnings being treated as errors
/aaa/src/gnu/usr.bin/egcs/common/../../../dist/gcc/explow.c: In function `emit_
stack_save':
/aaa/src/gnu/usr.bin/egcs/common/../../../dist/gcc/explow.c:889: warning: assig
nment from incompatible pointer type
/aaa/src/gnu/usr.bin/egcs/common/../../../dist/gcc/explow.c: In function `emit_
stack_restore':
/aaa/src/gnu/usr.bin/egcs/common/../../../dist/gcc/explow.c:970: warning: assig
nment from incompatible pointer type
*** Error code 1

Stop.

At line 889 and 970, gen_save_stack_function and gen_save_stack_fuction are
used as "rtx (*) PROTO ((rtx, rtx))", but they are defined as

extern rtx gen_save_stack_function           PROTO((void));
extern rtx gen_restore_stack_function        PROTO((void));

in {insn-flags.h, insn-emit.c}.

Except for them, it seems to work.  I'm using a kernel built by egcs-1.1 now.