[Bug bootstrap/20582] New: ip2k-elf doesn't build

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Mon Mar 21 22:01:00 GMT 2005

ip2k-elf doesn't build.  The build process fails while building gcc.
Specifically, __gcc_bcmp hits an ICE like so:

/home/kazu/gnu/gcc/gcc-develop/gcc/gcc/libgcc2.c: In function $-1òø__gcc_bcmpòù:
/home/kazu/gnu/gcc/gcc-develop/gcc/gcc/libgcc2.c:1797: error: insn does not
satisfy its constraints:
(insn 120 42 103 3 /home/kazu/gnu/gcc/gcc-develop/gcc/gcc/libgcc2.c:1793 (set
(reg:HI 128 $80 [orig:280 D.1980 ] [280])
        (minus:HI (reg:HI 136 $88 [orig:285 c1 ] [285])
            (zero_extend:HI (reg/v:QI 128 $80 [orig:278 c2 ] [278])))) 48
{*subhi3_nonimm_zero_extend} (nil)
    (expr_list:REG_DEAD (reg:HI 136 $88 [orig:285 c1 ] [285])
/home/kazu/gnu/gcc/gcc-develop/gcc/gcc/libgcc2.c:1797: internal compiler error:
in copyprop_hardreg_forward_1, at regrename.c:1570
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Here is a testcase, derived from a preprocessed source.

typedef unsigned int size_t;

__gcc_bcmp (const unsigned char *s1, const unsigned char *s2, size_t size)
  while (size > 0)
      const unsigned char c1 = *s1++, c2 = *s2++;
      if (c1 != c2)
	return c1 - c2;
  return 0;

           Summary: ip2k-elf doesn't build
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: denisc at overta dot ru,gcc-bugs at gcc dot gnu dot org
GCC target triplet: ip2k-elf


More information about the Gcc-bugs mailing list