public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: gbeauchesne@mandrakesoft.com To: gcc-gnats@gcc.gnu.org Cc: jakub@redhat.com, jh@suse.cz Subject: optimization/7426: unable to find a register to spill in class `FLOAT_REGS' Date: Sun, 28 Jul 2002 14:36:00 -0000 [thread overview] Message-ID: <20020728213115.23067.qmail@sources.redhat.com> (raw) >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:
next reply other threads:[~2002-07-28 21:36 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-07-28 14:36 gbeauchesne [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020728213115.23067.qmail@sources.redhat.com \ --to=gbeauchesne@mandrakesoft.com \ --cc=gcc-gnats@gcc.gnu.org \ --cc=jakub@redhat.com \ --cc=jh@suse.cz \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).