[Bug c/106966] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

christian.ehrhardt at canonical dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 19 11:11:57 GMT 2022


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

--- Comment #1 from Christian Ehrhardt <christian.ehrhardt at canonical dot com> ---
I compared a few more cross-gcc's I could get hold of.
Thereby I can state this was already broken with 12.1.0 on Ubuntu 22.04 and
Fedora 36.

Note: I'm only listing where the instructions for these differ

1. Fedora 36
gcc version 12.1.1 20220507 (Red Hat Cross 12.1.1-1) (GCC) 

$ dnf install gcc-alpha-linux-gnu make git
...
alpha-linux-gnu-gcc -O2 -g1 -Wall -fvisibility=hidden -fno-strict-aliasing
-msmall-text -msmall-data -mno-fp-regs -mbuild-constants -mcpu=ev67
-DSYSTEM_H='"sys-clipper.h"'  -c -o console.o console.c
during RTL pass: expand
console.c: In function ‘do_console’:
console.c:130:12: internal compiler error: in emit_move_insn, at expr.cc:4010
  130 |     vga[0] = 'H' + attr;
      |     ~~~~~~~^~~~~~~~~~~~
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <http://bugzilla.redhat.com/bugzilla/> for instructions.
Preprocessed source stored into /tmp/cchVNtxj.out file, please attach this to
your bugreport.
make: *** [<builtin>: console.o] Error 1



2. Ubuntu 22.04 gcc-12
gcc version 12.1.0 (Ubuntu 12.1.0-2ubuntu1~22.04) 

$ apt install gcc-12-alpha-linux-gnu
...
alpha-linux-gnu-gcc-12 -O2 -g1 -Wall -fvisibility=hidden -fno-strict-aliasing
-msmall-text -msmall-data -mno-fp-regs -mbuild-constants -mcpu=ev67
-DSYSTEM_H='"sys-clipper.h"'  -c -o console.o console.c
during RTL pass: expand
console.c: In function ‘do_console’:
console.c:130:12: internal compiler error: in emit_move_insn, at expr.cc:4010
  130 |     vga[0] = 'H' + attr;
      |     ~~~~~~~^~~~~~~~~~~~
0x13767bb internal_error(char const*, ...)
        ???:0
0x5a92b0 fancy_abort(char const*, int, char const*)
        ???:0
0xe09a32 alpha_split_const_mov(machine_mode, rtx_def**)
        ???:0
0xe09ba1 alpha_expand_mov(machine_mode, rtx_def**)
        ???:0
0x112c7fd gen_movv4hi(rtx_def*, rtx_def*)
        ???:0
0x7ee88b emit_move_insn_1(rtx_def*, rtx_def*)
        ???:0
0x7eec77 emit_move_insn(rtx_def*, rtx_def*)
        ???:0
0xe0c3b6 alpha_expand_movmisalign(machine_mode, rtx_def**)
        ???:0
0x112caca gen_movmisalignv4hi(rtx_def*, rtx_def*)
        ???:0
0xa272fc expand_insn(insn_code, unsigned int, expand_operand*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
make: *** [<builtin>: console.o] Error 1


More information about the Gcc-bugs mailing list