Bug 6957 - Internal compiler error in failed_reload, at reload1.c:5050
Summary: Internal compiler error in failed_reload, at reload1.c:5050
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.1
: P1 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 6958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-07 09:06 UTC by se
Modified: 2003-07-25 17:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description se 2002-06-07 09:06:01 UTC
Error compiling file lib/GL/mesa/src/translate.c (symlink to  extras/Mesa/src/translate.c) of the XFree86-4.2.0 package with optimization (-O, -O2). Compilation succeeds with -O0 and -Os.

The error message is:

../../../../../extras/Mesa/src/trans_tmp.h: In function `trans_1_GLdouble_1ub_elt':
../../../../../extras/Mesa/src/trans_tmp.h:124: could not find a spill register
(insn 96 94 97 (set (subreg:SF (reg:QI 75) 0)
        (plus:SF (reg:SF 8 st(0) [76])
            (reg:SF 9 st(1) [80]))) 525 {*fop_sf_comm_nosse} (insn_list 87 (nil))
    (expr_list:REG_DEAD (reg:SF 8 st(0) [76])
        (nil)))
../../../../../extras/Mesa/src/trans_tmp.h:124: Internal compiler error in failed_reload, at reload1.c:5050

Release:
gcc-3.1

Environment:
FreeBSD 5.0-CURRENT (2002/05/06) on i386

Output of gcc -v:

Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.1 [FreeBSD] 20020509 (prerelease)

How-To-Repeat:
Compile the attached (expanded) source file using the following command a

gcc -c -O -pipe -Dasm=__asm -Wall -Wpointer-arith -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -DMALLOC_0_RETURNS_NULL -fPIC translate_E.c
Comment 1 Gerald Pfeifer 2002-06-28 05:47:50 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: As far as I can see, Bernd Schmidt has addressed this bug:
      http://gcc.gnu.org/ml/gcc/2002-06/msg01211.html
      http://gcc.gnu.org/ml/gcc/2002-06/msg01709.html
    Would you mind verifying whether this fix indeed resolves 
    your bug? Thanks!
Comment 2 Gerald Pfeifer 2002-06-29 14:32:34 UTC
State-Changed-From-To: feedback->closed
State-Changed-Why: Closed upon feedback by submitter. Thanks for the careful check!
Comment 3 se 2002-06-29 22:29:34 UTC
From: Stefan Esser <se@freebsd.org>
To: gerald@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, pfeifer@dbai.tuwien.ac.at, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/6957: Internal compiler error in failed_reload, at reload1.c:5050
Date: Sat, 29 Jun 2002 22:29:34 +0200

 On 2002-06-28 12:47 -0000, gerald@gcc.gnu.org wrote:
 > Synopsis: Internal compiler error in failed_reload, at reload1.c:5050
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: gerald
 > State-Changed-When: Fri Jun 28 05:47:50 2002
 > State-Changed-Why:
 >     As far as I can see, Bernd Schmidt has addressed this bug:
 >       http://gcc.gnu.org/ml/gcc/2002-06/msg01211.html
 >       http://gcc.gnu.org/ml/gcc/2002-06/msg01709.html
 >     Would you mind verifying whether this fix indeed resolves 
 >     your bug? Thanks!
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6957
 
 The bug appears to be fixed!
 
 I also verified that the resulting GCC is capable of
 completing a "make world" on FreeBSD-current, just as
 an additional regression test ...
 
 Regards, STefan