public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: towa8667@student.uu.se
To: gcc-gnats@gcc.gnu.org
Subject: optimization/8994: ICE with -O -march=pentium4
Date: Wed, 18 Dec 2002 11:46:00 -0000	[thread overview]
Message-ID: <20021218194552.6395.qmail@sources.redhat.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]


>Number:         8994
>Category:       optimization
>Synopsis:       ICE with -O -march=pentium4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 18 11:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Torbjörn Wassberg
>Release:        gcc version 3.2.2 20021218 (prerelease)
>Organization:
>Environment:
Mandrake 9.0 x86
binutils 2.13.90.0.10
Configured with: ../gcc/configure --prefix=/usr/local/gcc-3_2-branch --enable-languages=c
>Description:
This is causing problems when compiling mozilla's javascript-source (see bugzilla.mozilla.org 172618) with -O -march=pentium4, note that this is not a dup of 7630.


gcc -Wall -save-temps -O -march=pentium4 -o A -c A.c
A.c: In function `js_dtoa':
A.c:12: warning: deprecated use of label at end of compound statement
A.c:12: unable to find a register to spill in class `AREG'
A.c:12: this is the insn:
(insn 26 25 27 (set (reg:CCNO 17 flags)
        (compare:CCNO (and:SI (subreg:SI (reg/v:DI 21 rxmm0 [59]) 0)
                (const_int 1 [0x1]))
            (const_int 0 [0x0]))) 281 {testsi_1} (insn_list 22 (nil))
    (expr_list:REG_DEAD (reg/v:DI 21 rxmm0 [59])
        (nil)))
A.c:12: confused by earlier errors, bailing out


# 1 "A.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "A.c"
typedef union {
  double value;
  int lsw;
} astr;

void js_dtoa(double d)
{
  while(1)
    if (( { astr sh_u; sh_u.value = d; sh_u.lsw; }) & 1)
      goto ret;
ret:
}
>How-To-Repeat:
gcc -O -march=pentium4 -o A -c A.c
>Fix:
Change -march=pentium4 to something else
>Release-Note:
>Audit-Trail:
>Unformatted:


                 reply	other threads:[~2002-12-18 19:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20021218194552.6395.qmail@sources.redhat.com \
    --to=towa8667@student.uu.se \
    --cc=gcc-gnats@gcc.gnu.org \
    /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: link
Be 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).