Subject: Stupid ARM32 cc1 chokes on compiling cross-reload1.c again.
To: None <tech-toolchain@netbsd.org>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: tech-toolchain
Date: 01/14/1999 21:40:47
Hi,

cc -c -DCROSS_COMPILE -DIN_GCC    -O  -DHAVE_CONFIG_H -DHAIFA    -I. -I. -I./con
fig reload1.c
reload1.c: In function `reload':
reload1.c:2184: internal error--unrecognizable insn:
(insn 11828 11825 874 (set (reg:SI 12 ip)
    (mem:SI (plus:SI (reg:SI 11 fp)
		(const_int -10324)))) -1 (nil)
  (nil))
/usr/local/src/gnu/usr.bin/egcs/common/../../../dist/gcc/toplev.c:1360: Internal
     compiler error in function fatal_insn
     gmake: *** [reload1.o] Error 1

This is from compiling cross/powerpc-netbsd, as cvs updated 24 hours ago,
on this machine:

emmi powerpc-netbsd 104% uname -a
NetBSD emmi 1.3I NetBSD 1.3I (SHARK) #0: Tue Jan  5 23:29:27 CET 1999
is@emmi:/usr/obj/kernel/SHARK arm32

Userland is err, one week, maybe two, older.

emmi powerpc-netbsd 123% !gcc
gcc -c -v /tmp/test.c
Using builtin specs.
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__arm32__ -D__arm__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__arm32__ -D__arm__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -Asystem(unix) -Asystem(NetBSD) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ /tmp/test.c /tmp/ccOSuL0C.i
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (ARM/NetBSD)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
 /usr/libexec/cc1 /tmp/ccOSuL0C.i -quiet -dumpbase test.c -version -o /tmp/ccOklmx7.s
GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release) (arm-netbsd) compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
 as -o test.o /tmp/ccOklmx7.s
emmi powerpc-netbsd 124%  as -v test.s
GNU assembler version 2.9 (arm-unknown-netbsd1.3A), using BFD version 2.9

which should be the working binary.
In case this matters.

I'll try to compile that without -O... works. (That is, compiles.)
	-is