https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91106
Bug ID: 91106 Summary: internal compiler error: output_operand: invalid use of register 'frame' Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gsocshubham at gmail dot com Target Milestone: --- Host: x86_64-linux-gnu Target: x86_64-linux-gnu Build: x86_64-linux-gnu Created attachment 46572 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46572&action=edit Preprocessed code of ICE causing program "crash2.c" -----------------------COMPILER CONFIGURATION--------------------------------- Using built-in specs. COLLECT_GCC=/home/extended_csmith/pull-martin-compiler/build/gcc/xgcc Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-languages=c,c++ --enable-lto --disable-bootstrap : (reconfigured) ../gcc/configure --enable-lto --disable-bootstrap --enable-languages=c,c++,lto --no-create --no-recursion Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.0.0 20190707 (experimental) (GCC) -----------------COMMAND LINE USED FOR COMPILATION------------------------- ~/pull-martin-compiler/build/gcc/xgcc -B ~/pull-martin-compiler/build/gcc/ -O0 crash2.i -w during RTL pass: final crash2.c: In function ‘func_1’: crash2.c:982:1: internal compiler error: output_operand: invalid use of register 'frame' 0x90fd53 output_operand_lossage(char const*, ...) ../../gcc/gcc/final.c:3610 0x101cdd4 ix86_print_operand_address_as ../../gcc/gcc/config/i386/i386.c:13152 0x101eaff ix86_print_operand(_IO_FILE*, rtx_def*, int) ../../gcc/gcc/config/i386/i386.c:12901 0x91006c output_operand(rtx_def*, int) ../../gcc/gcc/final.c:4052 0x91093e output_asm_insn(char const*, rtx_def**) ../../gcc/gcc/final.c:3964 0x91203f final_scan_insn_1 ../../gcc/gcc/final.c:3107 0x9134fb final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../gcc/gcc/final.c:3153 0x913649 final_1 ../../gcc/gcc/final.c:2021 0x914404 rest_of_handle_final ../../gcc/gcc/final.c:4659 0x914404 execute ../../gcc/gcc/final.c:4737 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. -------------------------REDUCED CODE------------------------------- void f(); #pragma pack(1) struct a { int b; char c; }; union { struct a b; } __attribute__((aligned(32), transparent_union)) d; void e() { f(d); }