Subject: ICE compiling glib2 package on mac68k
To: None <tech-toolchain@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: tech-toolchain
Date: 03/26/2004 15:11:27
Tried to compile the devel/glib2 package on my -current mac68k system,
and it failed with:

gmake[3]: Entering directory `/usr/tmp/devel/glib2/work.m68k/glib-2.2.3/glib/trio'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DTRIO_EXTENSION=0  -I/usr/include -I/usr/pkg/include -pthread  -O2 -I/usr/include -I/usr/pkg/include -Wall -c trio.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../.. -DTRIO_EXTENSION=0 -I/usr/tmp/devel/glib2/work.m68k/.buildlink/include -pthread -O2 -Wall -c trio.c  -fPIC -DPIC -o .libs/trio.o
trio.c: In function `_GTrioWriteDouble':
trio.c:2998: error: unrecognizable insn:
(insn 1991 338 339 48 0x0 (set (reg:XF 17 %fp1)
        (mem/u/f:XF (symbol_ref/u:SI ("*.LC15")) [15 S12 A32])) -1 (nil)
    (nil))
trio.c:2998: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.
gmake[3]: *** [trio.lo] Error 1

The file compiles fine with -O0 or -O1; fails as above with -O2. gcc -v
says:

Using built-in specs.
Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf --host=m68k--netbsdelf --target=m68k--netbsdelf
Thread model: posix
gcc version 3.3.3 (NetBSD nb1 20040301)

-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 28 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++