From owner-freebsd-current Thu Oct 24 8:42: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49AA437B401 for ; Thu, 24 Oct 2002 08:41:59 -0700 (PDT) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id D129843E6A for ; Thu, 24 Oct 2002 08:41:58 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 28421 invoked from network); 24 Oct 2002 15:42:02 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 24 Oct 2002 15:42:02 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id g9OFfun5071108; Thu, 24 Oct 2002 11:41:57 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20021024045758.GA3936@troutmask.apl.washington.edu> Date: Thu, 24 Oct 2002 11:42:00 -0400 (EDT) From: John Baldwin To: Steve Kargl Subject: RE: Simple code produces ICE in gcc-3.2.1 Cc: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Probably want to send this to gcc-bugs@gcc.gnu.org instead. On 24-Oct-2002 Steve Kargl wrote: > The code fragment below causes an ICE if > k = 1. No ICE occurs if k = 0 or the > optimization level is -O0 or -O1. > > troutmask:kargl[205] gcc -O2 -c c.c > c.c: In function `ice': > c.c:11: unrecognizable insn: > (insn 179 170 188 (set (reg:SI 85) > (ashift:SI (reg/v:SI 62) > (const_int 1 [0x1]))) -1 (nil) > (nil)) > c.c:11: Internal compiler error in extract_insn, at recog.c:2150 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > > > kargl[203] gcc -v > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.2.1 [FreeBSD] 20021009 (prerelease) > > -- > Steve > > void ice(int m, int n, double *f) { > > int i, j, k; > > /* k = 0; No ICE */ > k = 1; /* ICE */ > > for (j = 0; j < n; j++) { > for (i = k; i < m; i++) { > f[i] = (double) (i * j); > f[i + j] = (double) ((i + 1) * j); > } > } > } > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message