This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15693] New: [3.3.4 regression] [sparc] ICE - unrecognizable insn


[forwarded from http://bugs.debian.org/250899]

distilled from the 2.6.7-rc1 kernel, built for sparc-linux (mm/fremap.c),
compiled with -O2 or -O3, works with -O0, -O1

3.3 branch, 20040517 or later, 20040429 is reported to work.

static __inline__ __attribute__ ((always_inline))
int page_mapping (unsigned flags)
{
  if (1u & (flags >> 16))
    return 1;
  return 0;
}
void install_page (unsigned flags)
{
  if (__builtin_expect (!page_mapping (flags), 0))
    __builtin_trap ();
}

$gcc -O2 bug-250899.c
bug-250899.c: In function `install_page':
bug-250899.c:12: error: unrecognizable insn:
(insn 53 16 54 0 0x701cf180 (set (reg:SI 112)
        (zero_extract:SI (reg:SI 110)
            (const_int 1 [0x1])
            (const_int 31 [0x1f]))) -1 (nil)
    (expr_list:REG_DEAD (reg:SI 110)
        (nil)))
bug-250899.c:12: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [3.3.4 regression] [sparc] ICE - unrecognizable insn
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-linux
  GCC host triplet: sparc-linux
GCC target triplet: sparc-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]