https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94902
Bug ID: 94902 Summary: [10 Regression] internal compiler error: output_operand: invalid use of register 'frame' Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat reduced.c void foo ( void ) { register int x asm ( "19" ) ; x -- ; } -------------------------------------------------------------------------------- $ gcc-10 --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- $ gcc-10 reduced.c reduced.c: In function ‘foo’: reduced.c:5:1: error: frame cannot be used in ‘asm’ here 5 | } | ^ during RTL pass: final reduced.c:5:1: internal compiler error: output_operand: invalid use of register 'frame' 0xa58bb6 output_operand_lossage(char const*, ...) ../../gcc-10-20200419/gcc/final.c:3609 0xa58ee1 output_operand(rtx_def*, int) ../../gcc-10-20200419/gcc/final.c:4051 0xa59a3d output_asm_insn(char const*, rtx_def**) ../../gcc-10-20200419/gcc/final.c:3963 0xa5d3e7 final_scan_insn_1 ../../gcc-10-20200419/gcc/final.c:3106 0xa5d6ab final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../gcc-10-20200419/gcc/final.c:3152 0xa5d7b6 final_1 ../../gcc-10-20200419/gcc/final.c:2020 0xa5e374 rest_of_handle_final ../../gcc-10-20200419/gcc/final.c:4658 0xa5e374 execute ../../gcc-10-20200419/gcc/final.c:4736 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. -------------------------------------------------------------------------------- gcc-9 --version gcc (GCC) 9.3.1 20200425 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- $ gcc-9 reduced.c reduced.c: In function ‘foo’: reduced.c:5:1: error: frame cannot be used in asm here 5 | } | ^ reduced.c:5: confused by earlier errors, bailing out