public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27858]  New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
@ 2006-06-01 12:56 tbm at cyrius dot com
  2006-06-01 13:01 ` [Bug tree-optimization/27858] " tbm at cyrius dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2006-06-01 12:56 UTC (permalink / raw)
  To: gcc-bugs

I get the following ICE when bootstrapping gcc 4.2 20060530 on alpha.  20060508
worked fine.  I'm running delta right now and will send a test case when it's
done.

/build/buildd/gcc-snapshot-20060530/build/./gcc/xgcc
-B/build/buildd/gcc-snapshot-20060530/build/./gcc/
-B/usr/lib/gcc-snapshot/alpha-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/alpha-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/alpha-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/alpha-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../../../../src/libjava/classpath/native/fdlibm -I../../include -O2 -g
-O2 -mieee -MT strtod.lo -MD -MP -MF .deps/strtod.Tpo -c
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c  -fPIC -DPIC -o
.libs/strtod.o
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c: In function
'_Jv_strtod_r':
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c:718: error:
unable to find a register to spill in class 'FLOAT_REGS'
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c:718: error: this
is the insn:
(insn 1014 1010 2389 99
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c:345 (set (reg:DF
34 $f2 [orig:288 prephitmp.60 ] [288])
        (subreg:DF (const_int 9218868437227405312 [0x7ff0000000000000]) 0)) 235
{*movdf_nofix} (nil)
    (expr_list:REG_DEAD (reg:DI 875)
        (nil)))
../../../../../../src/libjava/classpath/native/fdlibm/strtod.c:718: internal
compiler error: in spill_failure, at reload1.c:1911
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[7]: *** [strtod.lo] Error 1


-- 
           Summary: ICE in spill_failure, at reload1.c:1911while
                    bootstrapping 4.2 on alpha
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
 GCC build triplet: alpha-linux-gnu
  GCC host triplet: alpha-linux-gnu
GCC target triplet: alpha-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug tree-optimization/27858] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
@ 2006-06-01 13:01 ` tbm at cyrius dot com
  2006-06-01 13:01 ` tbm at cyrius dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2006-06-01 13:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2006-06-01 13:01 -------
Created an attachment (id=11566)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11566&action=view)
test case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug tree-optimization/27858] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
  2006-06-01 13:01 ` [Bug tree-optimization/27858] " tbm at cyrius dot com
@ 2006-06-01 13:01 ` tbm at cyrius dot com
  2006-06-01 15:32 ` [Bug target/27858] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2006-06-01 13:01 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #1 from tbm at cyrius dot com  2006-06-01 13:00 -------
3012:tbm@reyes: ~/tmp/delta/bin] /home/tbm/tmp/gcc/20060530-alpha/gcc/xgcc -c
-O1 mini.c
3013:tbm@reyes: ~/tmp/delta/bin] /home/tbm/tmp/gcc/20060530-alpha/gcc/xgcc -c
-O2 mini.c
mini.c: In function ‘_Jv_strtod_r’:
mini.c:81: error: unable to find a register to spill in class ‘FLOAT_REGS’
mini.c:81: error: this is the insn:
(insn 35 33 22 4 (set (reg:DF 34 $f2 [orig:70 prephitmp.31 ] [70])
        (subreg:DF (const_int 9218868437227405312 [0x7ff0000000000000]) 0)) 235
{*movdf_nofix} (nil)
    (expr_list:REG_DEAD (reg:DI 139)
        (nil)))
mini.c:81: internal compiler error: in spill_failure, at reload1.c:1911
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
zsh: exit 1     /home/tbm/tmp/gcc/20060530-alpha/gcc/xgcc -c -O2 mini.c
3014:tbm@reyes: ~/tmp/delta/bin]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
  2006-06-01 13:01 ` [Bug tree-optimization/27858] " tbm at cyrius dot com
  2006-06-01 13:01 ` tbm at cyrius dot com
@ 2006-06-01 15:32 ` pinskia at gcc dot gnu dot org
  2006-06-01 16:28 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-01 15:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|tree-optimization           |target
           Keywords|                            |build, ice-on-valid-code
            Summary|ICE in spill_failure, at    |[4.2 Regression] ICE in
                   |reload1.c:1911while         |spill_failure, at
                   |bootstrapping 4.2 on alpha  |reload1.c:1911while
                   |                            |bootstrapping 4.2 on alpha
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2006-06-01 15:32 ` [Bug target/27858] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-06-01 16:28 ` pinskia at gcc dot gnu dot org
  2006-06-01 17:14 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-01 16:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-06-01 16:28 -------
I can reproduce this with 4.2.0 Mon May 29 22:03:29 UTC 2006 (revision 114217M)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2006-06-01 16:28 ` pinskia at gcc dot gnu dot org
@ 2006-06-01 17:14 ` pinskia at gcc dot gnu dot org
  2006-06-01 17:50 ` janis at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-01 17:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-06-01 17:14 -------
Confirmed, a little more reduced testcase:
typedef unsigned int uint32_t;
union double_union
{
    double d;
    uint32_t i[2];
};
int *_Jv_s2b (void);
int *_Jv_Balloc (int);
double _Jv_strtod_r (int *ptr, char *se, int e1, union double_union rv0, int
sign, long y)
{
    union double_union rv;
    int *bd = 0 , *bd0 = 0;
    if (e1 > 308)
    {
ovfl:
        (rv.i[1]) = 0x7ff00000L;
        (rv.i[0]) = 0;
        if (bd0)
            goto retfree;
        goto ret;
    }
    if (!rv.d)
        rv.d = 0.;
    bd0 = _Jv_s2b ();
    for (;;)
    {
        bd = _Jv_Balloc (*bd0);
        if (!rv.d)
            goto retfree;
        if (y == ((uint32_t) 0x100000L) )
            if (((rv.i[1]) & ((uint32_t) 0x7ff00000L))
                 >= ((uint32_t) 0x100000L) * (1994))
                if ((rv0.i[1]) ==  (((uint32_t) 0xfffffL) | ((uint32_t)
0x100000L) * (2046))
                    && (rv0.i[0]) == ((uint32_t) 0xffffffffL))
                    goto ovfl;
        _Jv_Bfree1 ();
    }
retfree:
        _Jv_Bfree (ptr);
ret:
        *se = 0;
    return sign ? -rv.d : rv.d;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-01 17:14:11
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2006-06-01 17:14 ` pinskia at gcc dot gnu dot org
@ 2006-06-01 17:50 ` janis at gcc dot gnu dot org
  2006-06-04 19:43 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-06-01 17:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from janis at gcc dot gnu dot org  2006-06-01 17:50 -------
A regression hunt using an alpha-linux cross compiler on powerpc64-linux with
the testcase mini.c identified the following patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=113632

    r113632 | sayle | 2006-05-08 21:09:49 +0000 (Mon, 08 May 2006)


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sayle at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2006-06-01 17:50 ` janis at gcc dot gnu dot org
@ 2006-06-04 19:43 ` mmitchel at gcc dot gnu dot org
  2006-06-12  2:11 ` sayle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 19:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2006-06-04 19:43 ` mmitchel at gcc dot gnu dot org
@ 2006-06-12  2:11 ` sayle at gcc dot gnu dot org
  2006-06-14 15:03 ` sayle at gcc dot gnu dot org
  2006-06-29 19:22 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-06-12  2:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sayle at gcc dot gnu dot org  2006-06-12 02:10 -------
Subject: Bug 27858

Author: sayle
Date: Mon Jun 12 02:10:24 2006
New Revision: 114559

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114559
Log:

        PR target/27858
        Revert incorrect fix for PR target/27158
        2006-05-08  Roger Sayle  <roger@eyesopen.com>
        * reload.c (find_reloads_toplev): Only return the simplified SUBREG
        of a reg_equiv_constant if the result is a legitimate constant.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/reload.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (7 preceding siblings ...)
  2006-06-12  2:11 ` sayle at gcc dot gnu dot org
@ 2006-06-14 15:03 ` sayle at gcc dot gnu dot org
  2006-06-29 19:22 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-06-14 15:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sayle at gcc dot gnu dot org  2006-06-14 14:46 -------
Subject: Bug 27858

Author: sayle
Date: Wed Jun 14 14:46:33 2006
New Revision: 114642

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114642
Log:

        PR target/27858
        Revert incorrect fix for PR target/27158
        2006-05-11  Roger Sayle  <roger@eyesopen.com>
        * reload.c (find_reloads_toplev): Only return the simplified SUBREG
        of a reg_equiv_constant if the result is a legitimate constant.


Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/reload.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

* [Bug target/27858] [4.2 Regression] ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha
  2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
                   ` (8 preceding siblings ...)
  2006-06-14 15:03 ` sayle at gcc dot gnu dot org
@ 2006-06-29 19:22 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-29 19:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-06-29 19:14 -------
Fixed, Roger forgot to close this as fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27858


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

end of thread, other threads:[~2006-06-29 19:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 12:56 [Bug tree-optimization/27858] New: ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha tbm at cyrius dot com
2006-06-01 13:01 ` [Bug tree-optimization/27858] " tbm at cyrius dot com
2006-06-01 13:01 ` tbm at cyrius dot com
2006-06-01 15:32 ` [Bug target/27858] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-06-01 16:28 ` pinskia at gcc dot gnu dot org
2006-06-01 17:14 ` pinskia at gcc dot gnu dot org
2006-06-01 17:50 ` janis at gcc dot gnu dot org
2006-06-04 19:43 ` mmitchel at gcc dot gnu dot org
2006-06-12  2:11 ` sayle at gcc dot gnu dot org
2006-06-14 15:03 ` sayle at gcc dot gnu dot org
2006-06-29 19:22 ` pinskia at gcc dot gnu dot org

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