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

            Bug ID: 88179
           Summary: [9 regression][MIPS]  pr84941.c ICE in
                    lra_eliminate_reg_if_possible at
                    lra-eliminations.c:1393  start with r266385
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paul.hua.gm at gmail dot com
  Target Milestone: ---

./build/gcc/cc1 -fpreprocessed pr84941.i -mel -quiet -dumpbase pr84941.c
-march=mips64r2 -mabi=64 -mllsc -mips64r2 -mno-shared -auxbase-strip pr84941.s
-O2 -version -o pr84941.s
GNU C17 (GCC) version 9.0.0 20181122 (experimental) (mips64el-linux-gnu)
        compiled by GNU C version 6.3.0 20170516, GMP version 6.1.2, MPFR
version 3.1.5, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C17 (GCC) version 9.0.0 20181122 (experimental) (mips64el-linux-gnu)
        compiled by GNU C version 6.3.0 20170516, GMP version 6.1.2, MPFR
version 3.1.5, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: b095a3a071065c8cb9dc75b4f940fa0d
during RTL pass: reload
/home/xuchenghua/GCC/gcc_git_trunk/gcc/testsuite/gcc.dg/pr84941.c: In function
‘foo’:
/home/xuchenghua/GCC/gcc_git_trunk/gcc/testsuite/gcc.dg/pr84941.c:10:1:
internal compiler error: in lra_eliminate_reg_if_possible, at
lra-eliminations.c:1393
0xa00930 lra_eliminate_reg_if_possible(rtx_def**)
        /home/paulhua/gcc_git_trunk/gcc/lra-eliminations.c:1393
0x9ed66d address_eliminator
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:362
0x9ed755 satisfies_address_constraint_p
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:411
0x9f4396 satisfies_address_constraint_p
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:423
0x9f4396 process_alt_operands
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:2305
0x9fad7d curr_insn_transform
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:3904
0x9fdd86 lra_constraints(bool)
        /home/paulhua/gcc_git_trunk/gcc/lra-constraints.c:4921
0x9e5d94 lra(_IO_FILE*)
        /home/paulhua/gcc_git_trunk/gcc/lra.c:2446
0x997589 do_reload
        /home/paulhua/gcc_git_trunk/gcc/ira.c:5469
0x997589 execute
        /home/paulhua/gcc_git_trunk/gcc/ira.c:5653
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


paulhua@gcc122:~/build/gcc-bisect$ cat pr84941.i
# 1 "/home/xuchenghua/GCC/gcc_git_trunk/gcc/testsuite/gcc.dg/pr84941.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "/home/xuchenghua/GCC/gcc_git_trunk/gcc/testsuite/gcc.dg/pr84941.c"




void
foo (void)
{
  short *b[1] = { 0 };
  asm volatile ("" : "=m,m" (b), "=r,r" (b) : "1,p" (b));
}


cross-compile configure with:
../configure MISSING=texinfo MAKEINFO=missing --target=mips64el-linux-gnu
--enable-languages=c,c++

Reply via email to