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
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 aliasing -msmall-text -msmall-data -mno-fp-regs -mbuild-constants -mcpu=ev67 -DSYSTEM_ H='"sys- clipper. h"' -c -o console.o console.c bugzilla. redhat. com/bugzilla/> for instructions.
...
alpha-linux-gnu-gcc -O2 -g1 -Wall -fvisibility=hidden -fno-strict-
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://
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 2ubuntu1~ 22.04)
gcc version 12.1.0 (Ubuntu 12.1.0-
$ apt install gcc-12- alpha-linux- gnu 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 const_mov( machine_ mode, rtx_def**) mov(machine_ mode, rtx_def**) rtx_def* , rtx_def*) insn_1( rtx_def* , rtx_def*) insn(rtx_ def*, rtx_def*) movmisalign( machine_ mode, rtx_def**) v4hi(rtx_ def*, rtx_def*) insn(insn_ code, unsigned int, expand_operand*) //usr/share/ doc/gcc- 12/README. Bugs> for instructions.
...
alpha-linux-
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_
???:0
0xe09ba1 alpha_expand_
???:0
0x112c7fd gen_movv4hi(
???:0
0x7ee88b emit_move_
???:0
0x7eec77 emit_move_
???:0
0xe0c3b6 alpha_expand_
???:0
0x112caca gen_movmisalign
???:0
0xa272fc expand_
???: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:/
make: *** [<builtin>: console.o] Error 1