Subject: pkg/11888: internal compiler errors with cross/sh-netbsdcoff
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/04/2001 02:55:13
>Number:         11888
>Category:       pkg
>Synopsis:       internal compiler errors with cross/sh-netbsdcoff
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 04 02:55:00 PST 2001
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.5Q and latest pkgsrc/cross/sh-netbsdcoff
System: NetBSD 1.5Q NetBSD 1.5Q (STARFRUIT) #306: Thu Jan 4 00:49:06 JST 2001 i386
Architecture: i386
Machine: i386
	there seem to be some issues with sh3 and egcs/gcc.
	the PR tries to list troubles with pkgsrc/cross/sh-netbsdcoff.

	- if we try to compile 1.5Q kernel with -O2, compilation dies with

	- usr.sbin/bind/dnsquery dies with internal compiler error.

/export/up1000/home/itojun/NetBSD/src/usr.sbin/bind/dnsquery/../../../dist/bind/bin/dnsquery/dnsquery.c:212: internal error--unrecognizable insn:
(insn 661 660 663 (set (reg:SI 253)
        (plus:SI (plus:SI (reg:SI 244)
                (reg:SI 250))
            (const_int 3))) -1 (nil)
toplev.c:1360: Internal compiler error in function fatal_insn

	- gnu/usr.bin/egcs dies with assembler errors:
/tmp/ccaBLymZ.s: Assembler messages:
/tmp/ccaBLymZ.s:27385: Error: Signed .word overflow; switch may be too large; 40
472 at 0xc7d0

	"make build" with sh3 cross compiler
	we may need to pull in fixes (made by msaitoh) into pkgsrc/cross/COMMON,
	however, it is hairy to maintain.  how do we synchronize local fixes
	to gnu toolchain, under pkgsrc/cross/COMMON and egcs/gcc under src/gnu?