https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99136
Bug ID: 99136 Summary: ICE in gimplify_expr, at gimplify.c:14854 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to at least r5, ICEs with -m16 and -m32, but not with -m64 : $ cat z1.c void f (double x) { return 1.0/x; } $ gcc-11-20210214 -c z1.c -m32 -std=c11 z1.c: In function 'f': z1.c:3:13: warning: 'return' with a value, in function returning void 3 | return 1.0/x; | ~~~^~ z1.c:1:6: note: declared here 1 | void f (double x) | ^ z1.c:3:13: internal compiler error: in gimplify_expr, at gimplify.c:14854 3 | return 1.0/x; | ~~~^~ 0x8fe7b1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:14854 0x8fe8d8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6876 0x8fc1ad gimplify_and_add(tree_node*, gimple**) ../../gcc/gimplify.c:489 0x8fc1ad gimplify_return_expr ../../gcc/gimplify.c:1671 0x8fc1ad gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:14331 0x8fe8d8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6876 0x8fee31 gimplify_bind_expr ../../gcc/gimplify.c:1421 0x8fc9d2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:14271 0x8fe8d8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6876 0x8ff8fd gimplify_body(tree_node*, bool) ../../gcc/gimplify.c:15306 0x8ffd5f gimplify_function_tree(tree_node*) ../../gcc/gimplify.c:15460 0x79cb67 cgraph_node::analyze() ../../gcc/cgraphunit.c:670 0x79f4a7 analyze_functions ../../gcc/cgraphunit.c:1233 0x79fdfd symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2511