internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 In compile X Window 4.2.0 from sources with flags -O2 -fforce-addr compiler report about ICE In file included from ../../../../../lib/GL/mesa/src/tnl/t_imm_elt.c:441: ../../../../../extras/Mesa/src/math/m_trans_tmp.h: In function `trans_4_GLdouble_4ub_elt': ../../../../../extras/Mesa/src/math/m_trans_tmp.h:125: error: could not find a spill register (insn:HI 81 80 82 5 0x408db7c0 (set (subreg:SF (reg:QI 85) 0) (plus:SF (reg:SF 8 st(0) [86]) (reg:SF 9 st(1) [90]))) 546 {*fop_sf_comm_nosse} (insn_list 76 (nil)) (expr_list:REG_DEAD (reg:SF 8 st(0) [86]) (nil))) ../../../../../extras/Mesa/src/math/m_trans_tmp.h:125: internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 Release: gcc 3.2 20020617 Environment: athlon-linux (2.4.19pre10) target == host == athlon-linux How-To-Repeat: gcc -c t_imm_elt.i
From: Reichelt <reichelt@igpm.rwth-aachen.de> 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; i<j; ++i ) if (j==1) { ++fp; u.r = *fp; c[i][0] = u.i>0 ? 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
State-Changed-From-To: open->feedback State-Changed-Why: I believe this has been fixed by Bernd Schmidt last week: http://gcc.gnu.org/ml/gcc/2002-06/msg01211.html http://gcc.gnu.org/ml/gcc/2002-06/msg01709.html Can you confirm this?
From: Sergei Pachkov <spigel@olvs.miee.ru> To: gerald@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, spigel@olvs.miee.ru, gcc-gnats@gcc.gnu.org Cc: Subject: Re: optimization/7063: internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 Date: Mon, 01 Jul 2002 15:44:01 +0400 gerald@gcc.gnu.org wrote: >Synopsis: internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047 > >State-Changed-From-To: open->feedback >State-Changed-By: gerald >State-Changed-When: Mon Jul 1 01:52:57 2002 >State-Changed-Why: > I believe this has been fixed by Bernd Schmidt last week: > http://gcc.gnu.org/ml/gcc/2002-06/msg01211.html > http://gcc.gnu.org/ml/gcc/2002-06/msg01709.html > Can you confirm this? > Yes After test this bug with version gcc 20020630 I'm confirm bugfix by Bernd Schmidt. I'm try to compile file attached to my report with option "-O2 -march=athlon-xp" and find new ICE(seg fault without detail report ). > >http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7063 > > >
State-Changed-From-To: feedback->closed State-Changed-Why: This bug has been fixed (even though there seems to be a different one -- would you mind filing a new report with suitable synopsis etc for the new bug).