Bug 7063 - internal compiler error: Internal compiler error in failed_reload, at reload1.c:5047
Summary: internal compiler error: Internal compiler error in failed_reload, at reload1...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2002-06-18 04:46 UTC by Sergei Patchkov
Modified: 2003-07-25 17:33 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
3.2-20020617.tar.bz2 (73.89 KB, application/octet-stream)
2003-05-21 15:17 UTC, Sergei Patchkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Patchkov 2002-06-18 04:46:01 UTC
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
Comment 1 Volker Reichelt 2002-06-27 14:35:10 UTC
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
 
 
Comment 2 Gerald Pfeifer 2002-07-01 01:52:57 UTC
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?
Comment 3 Sergei Patchkov 2002-07-01 15:44:01 UTC
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
 >
 >  
 >
 
 
Comment 4 Gerald Pfeifer 2002-07-02 13:49:49 UTC
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).