Subject: gcc3 testglib.c:920: internal compiler error: in final_scan_insn
To: None <,>
From: David Brownlee <>
List: tech-toolchain
Date: 05/19/2004 09:07:00
 	Trying to compile packages under NetBSD 2.0_BETA on an
 	arm box and several of them seem to include the same (or similar)
 	testglib.c file, which causes gcc3 to choke with any optimisation

testglib.c:920: error: insn does not satisfy its constraints:
(insn:HI 6470 8910 8913 0x205f9478 (set (reg:DI 3 r3 [1949])
         (zero_extend:DI (mem:QI (const (plus (label_ref 9268)
                         (const_int 48 [0x30]))) [0 S1 A8]))) 146 {zero_extendqidi2} (insn_list:REG_DEP_ANTI 8910 (insn_list:REG_DEP_ANTI 8909 (insn_list:REG_DEP_OUTPUT 6482 (nil))))
     (expr_list:REG_UNUSED (reg:SI 4 r4)
testglib.c:920: internal compiler error: in final_scan_insn, at final.c:2722

 	The line given refers to the end of the 600 line main.

 	This happens on at least devel/glib, devel/glib2, and devel/pkgconfig.

 	Short of adding the following to each Makefile, does anyone have any
 	thoughts on how to work around / fix this?

 	.if (${MACHINE_ARCH} == "arm")
 	# testglib.c chokes with "internal compiler error: in final_scan_insn"
 	CFLAGS+=        -O0

 			   David Brownlee --