Subject: Re: gcc3 testglib.c:920: internal compiler error: in
To: David Brownlee <abs@netbsd.org>
From: Richard Earnshaw <Richard.Earnshaw@arm.com>
List: tech-toolchain
Date: 05/19/2004 11:35:17
--=-Us08ZV+e9vBRi4Wa0TbS
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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.



--=-Us08ZV+e9vBRi4Wa0TbS
Content-Disposition: attachment; filename=qidi.patch
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name=qidi.patch; charset=ISO-8859-15

SW5kZXg6IGFybS5oDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9nY2MvZ2NjL2djYy9jb25m
aWcvYXJtL2FybS5oLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4xNjguMi4xDQpyZXRyaWV2aW5n
IHJldmlzaW9uIDEuMTY4LjIuMg0KZGlmZiAtcCAtcjEuMTY4LjIuMSAtcjEuMTY4LjIuMg0KKioq
IGFybS5oCTI1IEZlYiAyMDA0IDExOjUwOjI0IC0wMDAwCTEuMTY4LjIuMQ0KLS0tIGFybS5oCTI2
IEZlYiAyMDA0IDE0OjEwOjAxIC0wMDAwCTEuMTY4LjIuMg0KKioqKioqKioqKioqKioqIHR5cGVk
ZWYgc3RydWN0DQoqKiogMjAyOSwyMDM1ICoqKioNCiAgCSAgICYmIEdFVF9DT0RFIChYRVhQIChY
LCAwKSkgPT0gUkVHCQkJCVwNCiAgCSAgICYmIEFSTV9SRUdfT0tfRk9SX0JBU0VfUCAoWEVYUCAo
WCwgMCkpKQkJCVwNCiAgICAgIGdvdG8gTEFCRUw7CQkJCQkJCQlcD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