https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79058

            Bug ID: 79058
           Summary: ARM: internal compiler error: in
                    extract_constrain_insn, at recog.c:2213
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

Created attachment 40502
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40502&action=edit
preprocessed linux-4.10/fs/nilfs2/sufile.c source, compressed

While building Linux kernel randconfigs with today's gcc snapshot
(arm-linux-gnueabi-gcc-7.0.0 (GCC) 7.0.0 20170111 (experimental)), I ran into
an ICE:

/home/arnd/cross-gcc/bin/arm-linux-gnueabi-gcc-7.0.0 -Os -mbig-endian -Wall
-Wno-pointer-sign -c build/0xC4732BE7_defconfig/fs/nilfs2/sufile.i

/git/arm-soc/fs/nilfs2/sufile.c: In function 'nilfs_sufile_do_free':
/git/arm-soc/fs/nilfs2/sufile.c:500:1: error: insn does not satisfy its
constraints:
 }
 ^
(insn 92 91 126 8 (set (reg:DI 0 r0 [167])
        (and:DI (reg:DI 1 r1 [orig:165+-4 ] [165])
            (const_int 1 [0x1]))) "/git/arm-soc/fs/nilfs2/sufile.c":494 79
{*anddi3_insn}
     (nil))
/git/arm-soc/fs/nilfs2/sufile.c:500:1: internal compiler error: in
extract_constrain_insn, at recog.c:2213
0xae5a73 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/arnd/git/gcc/gcc/rtl-error.c:108
0xae5a9f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/arnd/git/gcc/gcc/rtl-error.c:119
0xab887d extract_constrain_insn(rtx_insn*)
        /home/arnd/git/gcc/gcc/recog.c:2213
0x9d6567 check_rtl
        /home/arnd/git/gcc/gcc/lra.c:2109
0x9daa1a lra(_IO_FILE*)
        /home/arnd/git/gcc/gcc/lra.c:2517
0x98f5d9 do_reload
        /home/arnd/git/gcc/gcc/ira.c:5400
0x98f5d9 execute
        /home/arnd/git/gcc/gcc/ira.c:5584
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

This only happens with the "-Os -mbig-endian" flags as far as I can tell.

Reply via email to