https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97620
Bug ID: 97620 Summary: -fexec-charset=IBM16804 triggers ICE Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: euloanty at live dot com Target Milestone: --- gcc -o stdio stdio.c -s -O2 -fexec-charset=IBM16804 during GIMPLE pass: strlen stdio.c: In function 'main': stdio.c:7: internal compiler error: converting to execution character set: Invalid or incomplete multibyte or wide character 0x8f21da c_cpp_diagnostic(cpp_reader*, cpp_diagnostic_level, cpp_warning_reason, rich_location*, char const*, __va_list_tag (*) [1]) ../../gcc/gcc/c-family/c-common.c:6366 0x192798d cpp_diagnostic_at ../../gcc/libcpp/errors.c:42 0x192798d cpp_diagnostic ../../gcc/libcpp/errors.c:75 0x1927a79 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...) ../../gcc/libcpp/errors.c:89 0x1921214 cpp_host_to_exec_charset(cpp_reader*, unsigned int) ../../gcc/libcpp/charset.c:798 0x8f22e3 c_common_to_target_charset(long) ../../gcc/gcc/c-family/c-common.c:6384 0x178f119 init_target_to_host_charmap ../../gcc/gcc/gimple-ssa-sprintf.c:199 0x178f119 handle_printf_call(gimple_stmt_iterator*, range_query*) ../../gcc/gcc/gimple-ssa-sprintf.c:4301 0xfdabfb strlen_check_and_optimize_call ../../gcc/gcc/tree-ssa-strlen.c:5473 0xfdabfb check_and_optimize_stmt ../../gcc/gcc/tree-ssa-strlen.c:5641 0xfdabfb strlen_dom_walker::before_dom_children(basic_block_def*) ../../gcc/gcc/tree-ssa-strlen.c:5874 0x1737467 dom_walker::walk(basic_block_def*) ../../gcc/gcc/domwalk.c:309 0xfcfd91 printf_strlen_execute ../../gcc/gcc/tree-ssa-strlen.c:5940 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.