public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/24497]  New: internal compiler error: in apply_opt_in_copies, at loop-unroll.c:2122
@ 2005-10-24  1:02 pbrook at gcc dot gnu dot org
  2005-10-24  1:33 ` [Bug rtl-optimization/24497] [3.4/4.0/4.1 Regression] " pbrook at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-10-24  1:02 UTC (permalink / raw)
  To: gcc-bugs

long long foo(void)
{
  long long unsigned s=0;
  long long unsigned b;
  for (b = 0; b++, s == 0; )
    {
      s = b;
    }
  return s;
}

Compiled with -O2 -funroll-all-loops gives

internal compiler error: in apply_opt_in_copies, at loop-unroll.c:2122

The problematic line is:

gcc_assert (rtx_equal_p (PATTERN (insn), PATTERN (orig_insn)));

And PATTERN(insn) is

(parallel [
        (set (reg/v:DI 32 [ b ])
            (plus:DI (reg/v:DI 32 [ b ])
                (const_int 1 [0x1])))
        (clobber (scratch:SI))
    ])

This fails because rtx_equal_p thinks the two (scratch:SI) are different
scratch registers, and returns 0.


-- 
           Summary: internal compiler error: in apply_opt_in_copies, at
                    loop-unroll.c:2122
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-checking
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pbrook at gcc dot gnu dot org
GCC target triplet: m68k-elf


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


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

end of thread, other threads:[~2007-02-03 15:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24  1:02 [Bug rtl-optimization/24497] New: internal compiler error: in apply_opt_in_copies, at loop-unroll.c:2122 pbrook at gcc dot gnu dot org
2005-10-24  1:33 ` [Bug rtl-optimization/24497] [3.4/4.0/4.1 Regression] " pbrook at gcc dot gnu dot org
2005-10-24  1:35 ` pinskia at gcc dot gnu dot org
2005-10-30 23:21 ` pinskia at gcc dot gnu dot org
2005-11-06  4:25 ` kazu at gcc dot gnu dot org
2005-11-06 12:23 ` pbrook at gcc dot gnu dot org
2005-11-11 23:48 ` janis at gcc dot gnu dot org
2005-11-12  5:48 ` pinskia at gcc dot gnu dot org
2005-11-13 10:12 ` rakdver at gcc dot gnu dot org
2005-11-18 10:31 ` rakdver at gcc dot gnu dot org
2005-11-18 15:45 ` [Bug rtl-optimization/24497] [3.4/4.0 " pinskia at gcc dot gnu dot org
2006-02-27 14:12 ` steven at gcc dot gnu dot org
2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
2006-08-11  7:34 ` [Bug rtl-optimization/24497] [4.0 " ebotcazou at gcc dot gnu dot org
2007-02-03 15:47 ` gdr 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).