Subject: Re: gcc3 testglib.c:920: internal compiler error: in
To: David Brownlee <abs@absd.org>
From: Richard Earnshaw <Richard.Earnshaw@arm.com>
List: port-arm
Date: 05/19/2004 10:14:03
On Wed, 2004-05-19 at 09:07, David Brownlee wrote:
> 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
> enabled:
>
> 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)
> (nil)))
> 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
> .endif
Send me a preprocessed version of the file that's faulting and the
compilation options you are using and I'll have a look at it.
R.