public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/21632] New: ICE with small model attribute on ia64
@ 2005-05-17 20:29 jakub at gcc dot gnu dot org
  2005-05-17 21:12 ` [Bug target/21632] " jakub at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-05-17 20:29 UTC (permalink / raw)
  To: gcc-bugs

struct S
{
  void *s[256];
};

struct T
{
  long t[23];
  struct S *u;
};

extern struct T
#ifdef __ia64__
__attribute__((model (small)))
#endif
v;

void *
foo (void)
{
  return v.u->s[0];
}

ICEs on gcc-4_0-branch at -O2, but did not ICE before the PR target/21412 patch
was checked in.
The only difference appears in *.flow2, where older GCC split
(insn 12 18 13 0 (set (reg/f:DI 14 r14 [344])
        (const:DI (plus:DI (symbol_ref:DI ("v") [flags 0xc0] <var_decl
0x2aaaad2f30d0 v>)
                (const_int 184 [0xb8])))) 5 {*movdi_internal} (nil)
    (expr_list:REG_EQUIV (const:DI (plus:DI (symbol_ref:DI ("v") [flags 0xc0]
<var_decl 0x2aaaad2f30d0 v>)
                (const_int 184 [0xb8])))
        (nil)))
into
(insn 35 18 36 0 (set (reg/f:DI 14 r14 [344])
        (symbol_ref:DI ("v") [flags 0xc0] <var_decl 0x2aaaad2f30d0 v>)) 5
{*movdi_internal} (nil)
    (nil))

(insn 36 35 13 0 (set (reg/f:DI 14 r14 [344])
        (plus:DI (reg/f:DI 14 r14 [344])
            (const_int 184 [0xb8]))) 101 {adddi3} (nil)
    (nil))
while current 4.0 branch keeps it unsplitted, so it aborts later on in
movdi_internal's
  if (which_alternative == 2 && ! TARGET_NO_PIC
      && symbolic_operand (operands[1], VOIDmode))
    abort ();

-- 
           Summary: ICE with small model attribute on ia64
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,rth at gcc dot gnu dot
                    org
GCC target triplet: ia64-linux


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


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

end of thread, other threads:[~2005-05-18 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-17 20:29 [Bug target/21632] New: ICE with small model attribute on ia64 jakub at gcc dot gnu dot org
2005-05-17 21:12 ` [Bug target/21632] " jakub at gcc dot gnu dot org
2005-05-18  5:45 ` rth at gcc dot gnu dot org
2005-05-18 16:51 ` cvs-commit at gcc dot gnu dot org
2005-05-18 17:33 ` cvs-commit at gcc dot gnu dot org
2005-05-18 17:42 ` rth 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).