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

            Bug ID: 84679
           Summary: internal compiler error: in
                    lra_eliminate_reg_if_possible, at
                    lra-eliminations.c:1382
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vegard.nossum at gmail dot com
  Target Milestone: ---

Input:

void f() {
  int b;
  asm("" : "=mp" (b));
  (void) &b;
}


Output:

$ xgcc -x c++ -S -Wall -
during RTL pass: reload
<stdin>: In function 'void f()':
<stdin>:5:1: internal compiler error: in lra_eliminate_reg_if_possible, at
lra-eliminations.c:1382
0x28cfae3 lra_eliminate_reg_if_possible(rtx_def**)
        /home/vegard/git/gcc/gcc/lra-eliminations.c:1382
0x289671b address_eliminator
        /home/vegard/git/gcc/gcc/lra-constraints.c:362
0x289671b satisfies_address_constraint_p
        /home/vegard/git/gcc/gcc/lra-constraints.c:411
0x289671b satisfies_address_constraint_p
        /home/vegard/git/gcc/gcc/lra-constraints.c:423
0x289671b process_alt_operands
        /home/vegard/git/gcc/gcc/lra-constraints.c:2281
0x28a8be3 curr_insn_transform
        /home/vegard/git/gcc/gcc/lra-constraints.c:3860
0x28bbf56 lra_constraints(bool)
        /home/vegard/git/gcc/gcc/lra-constraints.c:4877
0x282c524 lra(_IO_FILE*)
        /home/vegard/git/gcc/gcc/lra.c:2419
0x260b334 do_reload
        /home/vegard/git/gcc/gcc/ira.c:5465
0x260b334 execute
        /home/vegard/git/gcc/gcc/ira.c:5649

$ xgcc --version
xgcc (GCC) 8.0.1 20180301 (experimental)

Built from git c435a9e730c6e8f10da09d58b4fc9aaeb401b0d5 (r258097).

Seems to have been introduced between 6.3.0 and 7.1.0.

Test case was minimised by C-Reduce.

Reply via email to