From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4113 invoked by alias); 25 May 2010 05:07:17 -0000 Received: (qmail 4097 invoked by uid 22791); 25 May 2010 05:07:16 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 May 2010 05:07:10 +0000 Received: from wpaz33.hot.corp.google.com (wpaz33.hot.corp.google.com [172.24.198.97]) by smtp-out.google.com with ESMTP id o4P576iY017438 for ; Mon, 24 May 2010 22:07:07 -0700 Received: from gwaa18 (gwaa18.prod.google.com [10.200.27.18]) by wpaz33.hot.corp.google.com with ESMTP id o4P575Is025989 for ; Mon, 24 May 2010 22:07:05 -0700 Received: by gwaa18 with SMTP id a18so2103219gwa.23 for ; Mon, 24 May 2010 22:07:05 -0700 (PDT) Received: by 10.101.158.39 with SMTP id k39mr8200413ano.203.1274764025431; Mon, 24 May 2010 22:07:05 -0700 (PDT) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id 13sm2545397gxk.8.2010.05.24.22.07.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 May 2010 22:07:04 -0700 (PDT) To: Philip Pemberton Cc: gcc@gcc.gnu.org Subject: Re: unrecognizable insn ICE in latticemico32 (lm32-elf) when building Linux kernel References: From: Ian Lance Taylor Date: Tue, 25 May 2010 05:18:00 -0000 In-Reply-To: (Philip Pemberton's message of "Tue\, 25 May 2010 02\:15\:53 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00492.txt.bz2 Philip Pemberton writes: > 1) Who's the current maintainer for the lm32 port? Jon Beniston? > I can't see anything on the gcc website that says definitively "target > X is maintained by $PERSON", and I really don't want to step on > his/her toes and start a flame war, turf war or any other kind of war > here... The official list of maintainers is stored in the gcc source code in the file MAINTAINERS. Having said that, there is no maintainer listed for lm32. I assume that it must be, as you suggest, Jon Beniston. > 2) What are these error messages telling me? Is there a "decoding ICE > Error Messages HOWTO" for aspiring GCC developers? That ICE is telling you that an RTL insn was generated for some reason but there is no matching define_insn in the CPU MD file. In this case it is an SImode move using a SUBREG. The address is unusual: (subreg:SI (mem/s:DI (plus:SI (reg/v/f:SI 39 [ ctx ]) (const_int 64 [0x40])) [0 S8 A64]) 4) Why isn't that simply (mem/s:SI (plus:SI (reg/v/f:SI 39 [ ctx ]) (const_int 68 [0x40])) [0 S8 A64]) That makes it look like something is creating a subreg without going through simplify_gen_subreg. It's also possible that the problem is simply that lm32_legitimate_address_p needs to handle a SUBREG memory address. > 3) I've established that the bug has been present in the lm32 port > since it was merged into the mainline GCC source. What part of the gcc > source should I start digging into first? See above. Ian