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

            Bug ID: 91251
           Summary: Revision 272645 on top of 9.1.0 caused ICE: in
                    extract_insn, at recog.c:2310
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: didin at synopsys dot com
  Target Milestone: ---

After applying changes from revision=272645 on top of 9.1.0 ICE appeared.

---------------------------COMPILER CONFIGURATION------------------------------
Using built-in specs.

Target: arc-buildroot-linux-uclibc
Configured with: ./configure --prefix=/worktrees/br_ica/output/host
--sysconfdir=/worktrees/br_ica/output/host/etc --enable-static
--target=arc-buildroot-linux-uclibc
--with-sysroot=/worktrees/br_ica/output/host/arc-buildroot-linux-uclibc/sysroot
--enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib
--disable-decimal-float --with-gmp=/worktrees/br_ica/output/host
--with-mpc=/worktrees/br_ica/output/host
--with-mpfr=/worktrees/br_ica/output/host --with-pkgversion='Buildroot
2019.08-git-00654-gcf9e8ebe47-dirty' --with-bugurl=http://bugs.buildroot.net/
--disable-libquadmath --disable-libsanitizer --enable-tls --disable-libmudflap
--enable-threads --without-isl --without-cloog --with-cpu=archs
--enable-languages=c,c++
--with-build-time-tools=/worktrees/br_ica/output/host/arc-buildroot-linux-uclibc/bin
--enable-shared --disable-libgomp
Thread model: posix
gcc version 9.1.0 (Buildroot 2019.08-git-00654-gcf9e8ebe47-dirty) 



------------------------REDUCED TEST CASE----------------------------------
char *XkbIndentText(unsigned size)
{
    static char buf[32];
    register int i;

    if (size > 31)
        size = 31;

    for (i = 0; i < size; i++) {
       buf[i] = ' ';
    }
    buf[size] = '\0';
    return buf;
}


------------------------COMMAND LINE USED FOR COMPILATION---------------------

./arc-linux-gcc -c test.c -fpic -O2
test.c: In function ‘XkbIndentText’:
test.c:14:1: error: unrecognizable insn:
   14 | }
      | ^
(insn 68 64 69 4 (set (reg:SI 178)
        (unspec:SI [
                (symbol_ref:SI ("buf.1422") [flags 0x2] <var_decl
0x7f068fa67240 buf>)
            ] ARC_UNSPEC_GOTOFFPC)) -1
     (nil))
during RTL pass: sched1
test.c:14:1: internal compiler error: in extract_insn, at recog.c:2310
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.buildroot.net/> for instructions.

Reply via email to