public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/7426: unable to find a register to spill in class `FLOAT_REGS'
@ 2002-07-28 14:36 gbeauchesne
  0 siblings, 0 replies; 5+ messages in thread
From: gbeauchesne @ 2002-07-28 14:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jakub, jh


>Number:         7426
>Category:       optimization
>Synopsis:       unable to find a register to spill in class `FLOAT_REGS'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 28 14:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gwenole Beauchesne
>Release:        GNU C version 3.2 2002-07-26 (prerelease) (i686-pc-linux-gnu)
>Organization:
>Environment:
i686-mandrake-linux-gnu
>Description:
[gb@no gcc]$ ./cc1 -O -march=athlon ice.c 
 f
ice.c: In function `f':
ice.c:11: unable to find a register to spill in class `FLOAT_REGS'

ice.c:11: this is the insn:
(insn 18 52 23 (set (subreg:SF (reg/v:DI 29 rmm0 [59]) 0)
        (minus:SF (reg:SF 8 st(0) [62])
            (mem/j:SF (symbol_ref:SI ("pos")) [0 pos+0 S4 A32]))) 533 {*fop_sf_1_nosse} (insn_list 15 (nil))
    (expr_list:REG_DEAD (reg:SF 8 st(0) [62])
        (nil)))
ice.c:11: confused by earlier errors, bailing out
>How-To-Repeat:
Testcase extracted from <chromium>/src/EnemyAircraft_Omni.cpp (EnemyAircraft_Omni::move).

[gb@no gcc]$ cat ice.c 
float lastMoveX;
float pos[2];

extern void * target;

void f()
{
  float *hpos = pos;
  float diff[2] = { hpos[0] - pos[0], hpos[1] - pos[1] };
  lastMoveX = (0.9 * lastMoveX) + (0.1 * (0.01 * diff[0]));
}

Compile with -O -march=athlon to exhaust the bug. Likewise for any arch that has PTA_MMX flag but "pentium-mmx".
>Fix:
-march=i686 is OK.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: optimization/7426: unable to find a register to spill in class `FLOAT_REGS'
@ 2002-10-23 15:05 jbuck
  0 siblings, 0 replies; 5+ messages in thread
From: jbuck @ 2002-10-23 15:05 UTC (permalink / raw)
  To: gbeauchesne, gcc-bugs, gcc-prs, jakub, jh, nobody

Synopsis: unable to find a register to spill in class `FLOAT_REGS'

State-Changed-From-To: analyzed->closed
State-Changed-By: jbuck
State-Changed-When: Wed Oct 23 15:05:31 2002
State-Changed-Why:
    Verified as no longer present on trunk or 3.2 branch as of
    23-oct-2002.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7426


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: optimization/7426: unable to find a register to spill in class `FLOAT_REGS'
@ 2002-10-22 16:06 Nathanael Nerode
  0 siblings, 0 replies; 5+ messages in thread
From: Nathanael Nerode @ 2002-10-22 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/7426; it has been noted by GNATS.

From: Nathanael Nerode <neroden@twcny.rr.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, jakub@redhat.com, jh@suse.cz,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gbeauchesne@mandrakesoft.com
Cc:  
Subject: Re: optimization/7426: unable to find a register to spill in class
 `FLOAT_REGS'
Date: Tue, 22 Oct 2002 19:01:24 -0400

 This appears to be fixed.  Can the reporter confirm that it's fixed, or 
 that it's still a problem, with current mainline or current 3.2 branch?
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7426
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: optimization/7426: unable to find a register to spill in class `FLOAT_REGS'
@ 2002-07-29 13:16 paolo
  0 siblings, 0 replies; 5+ messages in thread
From: paolo @ 2002-07-29 13:16 UTC (permalink / raw)
  To: gbeauchesne, gcc-bugs, gcc-prs, jakub, jh, nobody

Synopsis: unable to find a register to spill in class `FLOAT_REGS'

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Mon Jul 29 13:16:00 2002
State-Changed-Why:
    Confirmed as a regression from 3.0.4 -> high priority

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7426


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: optimization/7426: unable to find a register to spill in class `FLOAT_REGS'
@ 2002-07-29  3:16 Gwenole Beauchesne
  0 siblings, 0 replies; 5+ messages in thread
From: Gwenole Beauchesne @ 2002-07-29  3:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/7426; it has been noted by GNATS.

From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: gcc-gnats@gcc.gnu.org
Cc: jakub@redhat.com, <jh@suse.cz>, <nobody@gcc.gnu.org>,
        <gcc-prs@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>
Subject: Re: optimization/7426: unable to find a register to spill in class
 `FLOAT_REGS'
Date: Mon, 29 Jul 2002 12:05:57 +0200 (CEST)

 On 28 Jul 2002 gbeauchesne@mandrakesoft.com wrote:
 
 > Compile with -O -march=athlon to exhaust the bug. Likewise for any arch
 > that has PTA_MMX flag but "pentium-mmx".
 
 Further notes: this is a regression from:
 GNU C version 3.0.5 20020502 (prerelease) (i686-pc-linux-gnu)
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-23 22:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-28 14:36 optimization/7426: unable to find a register to spill in class `FLOAT_REGS' gbeauchesne
2002-07-29  3:16 Gwenole Beauchesne
2002-07-29 13:16 paolo
2002-10-22 16:06 Nathanael Nerode
2002-10-23 15:05 jbuck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).