From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10330 invoked by alias); 27 Jun 2002 12:06:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10313 invoked by uid 71); 27 Jun 2002 12:06:02 -0000 Date: Thu, 27 Jun 2002 05:46:00 -0000 Message-ID: <20020627120602.10311.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: optimization/7063: internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 Reply-To: Reichelt X-SW-Source: 2002-06/txt/msg00653.txt.bz2 List-Id: The following reply was made to PR optimization/7063; it has been noted by GNATS. From: Reichelt To: gcc-gnats@gcc.gnu.org, spigel@olvs.miee.ru, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: optimization/7063: internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 Date: Thu, 27 Jun 2002 14:35:10 +0200 Hi, the bug can reproduced with the following code snippet: ------------------------snip here---------------------- void foo() { char (*c)[2]; float *fp; int i, j; union { float r; int i; } u; for ( i=0; i0 ? 0 : (u.r+=1, u.i); u.r = *fp; c[i][0] = u.i>0 ? 0 : (u.r+=1, u.i); } } ------------------------snip here---------------------- Just compile it with "gcc -march=athlon -O2 -fforce-addr -c" to get the following error message: bug.c: In function `foo': bug.c:15: could not find a spill register (insn 50 48 51 (set (subreg:SF (reg:QI 67) 0) (plus:SF (subreg:SF (reg/v:SI 0 eax [62]) 0) (reg:SF 8 st(0) [69]))) 525 {*fop_sf_comm_nosse} (nil) (expr_list:REG_DEAD (reg/v:SI 0 eax [62]) (nil))) bug.c:15: Internal compiler error in failed_reload, at reload1.c:5050 Please submit a full bug report, [etc.] The bug is in gcc 3.1, recent snapshots of 3.1.1 and the main trunk. It's a regression from gcc 3.0.x. By the way, in the tar archive that was attached to the bug report there was another file (psout.i) that causes an athlon-related ICE. I opened another PR for that one (PR 7134). Greetings, Volker Reichelt http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7063 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7134