Subject: Re: gcc3 testglib.c:920: internal compiler error: in final_scan_insn
To: Richard Earnshaw <Richard.Earnshaw@arm.com>
From: James Chacon <jmc@NetBSD.org>
List: tech-toolchain
Date: 05/19/2004 10:27:23
On Wed, May 19, 2004 at 11:35:17AM +0100, Richard Earnshaw wrote:
> On Wed, 2004-05-19 at 10:55, David Brownlee wrote:
> > On Wed, 19 May 2004, Richard Earnshaw wrote:
> >
> > > 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.
> >
> > On Wed, 19 May 2004, Martin Husemann wrote:
> >
> > > On Wed, May 19, 2004 at 09:07:00AM +0100, 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
> > >
> > > Could you post such a testglib.c file, please?
> >
> > testglib.c and testglib-E.c attached, in bzipped tarfile.
> > Original command line was:
> >
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -O2 -pipe -Wall -D_REENTRANT -c testglib.c
> >
> > Problem can be seen with 'gcc -O -c testglib-E.c'
>
> 2004-02-26 Richard Earnshaw <rearnsha@arm.com>
> Daniel Jacobowitz <drow@mvista.com>
>
> PR target/14302
> * arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS): Don't check the mode
> size for minipool references.
>
>
Can someone commit this/request pullup?
James