public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897
@ 2005-05-09 14:44 pbrook at gcc dot gnu dot org
  2005-05-09 14:52 ` [Bug rtl-optimization/21469] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-05-09 14:44 UTC (permalink / raw)
  To: gcc-bugs

Compiling the following code with "gcc -march=i386 -O2" gives and ICE.
-march=i686 doesn't have the same failure.
gcc version 4.1.0 20050507 (experimental)
3.3 and 3.4 both compile the code OK.

typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef union {
  uint8_t _b[8];
  uint16_t _w[2];
} MMXReg;
register MMXReg *env asm("ebp");
register long T0 asm("ebx");
register long T1 asm("esi");
register long T2 asm("edi");
void foo (int order) {
  MMXReg r;

  r._w[0] = env->_w[order];
  *env = r;
}

--------------------

t2.c:16: error: unable to find a register to spill in class 'GENERAL_REGS'
t2.c:16: error: this is the insn:
(insn:HI 14 28 16 0 (set (strict_low_part (subreg:HI (reg/v:DI 59 [ r ]) 0))
        (mem/s:HI (plus:SI (mult:SI (reg/v:SI 60 [ order ])
                    (const_int 2 [0x2]))
                (reg:SI 58 [ env.0 ])) [0 <variable>._w S2 A16])) 42
{*movstricthi_1} (insn_list:REG_DEP_TRUE 12 (insn_list:REG_DEP_TRUE 6
(insn_list:REG_DEP_TRUE 26 (nil))))
    (expr_list:REG_DEAD (reg/v:SI 60 [ order ])
        (nil)))
t2.c:16: internal compiler error: in spill_failure, at reload1.c:1897

-- 
           Summary: nternal compiler error: in spill_failure, at
                    reload1.c:1897
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pbrook at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


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

* [Bug rtl-optimization/21469] nternal compiler error: in spill_failure, at reload1.c:1897
  2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
@ 2005-05-09 14:52 ` pinskia at gcc dot gnu dot org
  2005-05-09 20:04 ` pbrook at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 14:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 14:51 -------
Why do people use global registers :(.

-- 


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


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

* [Bug rtl-optimization/21469] nternal compiler error: in spill_failure, at reload1.c:1897
  2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
  2005-05-09 14:52 ` [Bug rtl-optimization/21469] " pinskia at gcc dot gnu dot org
@ 2005-05-09 20:04 ` pbrook at gcc dot gnu dot org
  2005-05-09 20:28 ` belyshev at depni dot sinp dot msu dot ru
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-05-09 20:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2005-05-09 20:04 -------
Annother testcase. This one fails at -O2 with gcc 4.1.0 20050507 and 4.0.1 20050430.
This is a regression from 3.4.

typedef unsigned long long uint64_t;
register int *env asm ("ebp");
register long T0 asm ("ebx");
register long T1 asm ("esi");
register long T2 asm ("edi");

void foo(void);

void
bar (long physaddr, uint64_t v)
{
  if (*env)
    {
      foo ();
      *(uint64_t *) (physaddr + *env) = v;
    }
}


-- 


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


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

* [Bug rtl-optimization/21469] nternal compiler error: in spill_failure, at reload1.c:1897
  2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
  2005-05-09 14:52 ` [Bug rtl-optimization/21469] " pinskia at gcc dot gnu dot org
  2005-05-09 20:04 ` pbrook at gcc dot gnu dot org
@ 2005-05-09 20:28 ` belyshev at depni dot sinp dot msu dot ru
  2005-05-09 20:31 ` pinskia at gcc dot gnu dot org
  2005-05-09 20:54 ` belyshev at depni dot sinp dot msu dot ru
  4 siblings, 0 replies; 6+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-05-09 20:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-05-09 20:28 -------


*** This bug has been marked as a duplicate of 16185 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug rtl-optimization/21469] nternal compiler error: in spill_failure, at reload1.c:1897
  2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-09 20:28 ` belyshev at depni dot sinp dot msu dot ru
@ 2005-05-09 20:31 ` pinskia at gcc dot gnu dot org
  2005-05-09 20:54 ` belyshev at depni dot sinp dot msu dot ru
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 20:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 20:30 -------
Hmm, I think only the second example is a dup.

-- 


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


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

* [Bug rtl-optimization/21469] nternal compiler error: in spill_failure, at reload1.c:1897
  2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-09 20:31 ` pinskia at gcc dot gnu dot org
@ 2005-05-09 20:54 ` belyshev at depni dot sinp dot msu dot ru
  4 siblings, 0 replies; 6+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-05-09 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-05-09 20:54 -------
(In reply to comment #4)
> Hmm, I think only the second example is a dup.

well, it is very easy to construct pile of such testcases -- just try to compile
anything with -ffixed-ebp -ffixed-ebx -ffixed-esi -ffixed-edi.


-- 


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


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

end of thread, other threads:[~2005-05-09 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 14:44 [Bug rtl-optimization/21469] New: nternal compiler error: in spill_failure, at reload1.c:1897 pbrook at gcc dot gnu dot org
2005-05-09 14:52 ` [Bug rtl-optimization/21469] " pinskia at gcc dot gnu dot org
2005-05-09 20:04 ` pbrook at gcc dot gnu dot org
2005-05-09 20:28 ` belyshev at depni dot sinp dot msu dot ru
2005-05-09 20:31 ` pinskia at gcc dot gnu dot org
2005-05-09 20:54 ` belyshev at depni dot sinp dot msu dot ru

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