public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/8994: ICE with -O -march=pentium4
@ 2002-12-18 11:46 towa8667
  0 siblings, 0 replies; only message in thread
From: towa8667 @ 2002-12-18 11:46 UTC (permalink / raw)
  To: gcc-gnats

[-- 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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-18 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-18 11:46 optimization/8994: ICE with -O -march=pentium4 towa8667

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).