Subject: gcc fails during Mozilla build
To: None <tech-toolchain@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-toolchain
Date: 02/05/2000 15:32:46
Hi,
trying to build Mozilla M13 on mac68k, I get the following feedback from gcc:
cd misc; gmake export
gmake[4]: Entering directory
`/home/hauke/src/Mozilla/mozilla/nsprpub/pr/src/misc'
gcc -o NetBSD1.4Q_DBG.OBJ/prnetdb.o -c -g -fPIC -ansi -Wall -pipe
-DNETBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DFORCE_PR_LOG -DXP_UNIX -DDEBUG
-UNDEBUG -DDEBUG_hauke -D_PR_LOCAL_THREADS_ONLY -D_NSPR_BUILD_
-I/home/hauke/src/Mozilla/mozilla/dist/include -I../../../pr/include
-I../../../pr/include/private prnetdb.c
prnetdb.c: In function `PR_ntohll':
prnetdb.c:1102: internal error--unrecognizable insn:
(insn 12 10 13 (set (mem:DI (plus:SI (reg:SI 14 a6)
(const_int -8)))
(ashiftrt:DI (mem:DI (plus:SI (reg:SI 14 a6)
(const_int 8)))
(const_int 32))) -1 (nil)
(nil))
/usr/src/gnu/usr.bin/egcs/common/../../../dist/gcc/toplev.c:1367: Internal
compiler error in function fatal_insn
gmake[4]: *** [NetBSD1.4Q_DBG.OBJ/prnetdb.o] Error 1
gmake[4]: Leaving directory
`/home/hauke/src/Mozilla/mozilla/nsprpub/pr/src/misc'
-- which to my eyes looks like a hiccup on intermediate code.
prnetdb.c line 1102 is the last line of the function
PR_IMPLEMENT(PRUint64) PR_ntohll(PRUint64 n)
{
/*
** There is currently no attempt to optomize out depending
** on the host' byte order. That would be easy enough to
** do.
*/
PRUint64 tmp;
PRUint32 hi, lo;
LL_L2UI(lo, n);
LL_SHR(tmp, n, 32);
LL_L2UI(hi, tmp);
hi = PR_ntohl(hi);
lo = PR_ntohl(lo);
LL_UI2L(n, hi);
LL_SHL(n, n, 32);
LL_UI2L(tmp, lo);
LL_ADD(n, n, tmp);
return n;
} /* ntohll */
The NetBSD/mac68k installation is bleeding-edge -current.
Any ideas?
hauke
--
"It's never straight up and down" (DEVO)