https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89663
Bug ID: 89663 Summary: ICE in expand_builtin_int_roundingfn_2, at builtins.c:2831 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Follow-up of pr89520 and pr89521 : $ cat z1.c long long llrint (); long f () { return llrint(1); } $ cat z2.c long long llrint (x); void f () { return llrint(1); } $ cat z3.c long lround (); long f () { return lround(1); } $ cat z4.c long lround (x); long f () { return lround(1); } $ gcc-9-20190310 -c z1.c -O2 z1.c: In function 'f': z1.c:4:17: warning: 'llrint' argument 1 type is 'int' where 'double' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 4 | return llrint(1); | ^ z1.c:1:11: note: built-in 'llrint' declared here 1 | long long llrint (); | ^~~~~~ during RTL pass: expand z1.c:4:10: internal compiler error: in expand_builtin_int_roundingfn_2, at builtins.c:2831 4 | return llrint(1); | ^~~~~~~~~ 0x73832c expand_builtin_int_roundingfn_2 ../../gcc/builtins.c:2831 0x74eb27 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/builtins.c:7341 0x8ac4a6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:11029 0x8b8256 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/expr.c:5673 0x8b9b48 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.c:5436 0x7748c2 expand_call_stmt ../../gcc/cfgexpand.c:2722 0x7748c2 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3691 0x7748c2 expand_gimple_stmt ../../gcc/cfgexpand.c:3850 0x777488 expand_gimple_tailcall ../../gcc/cfgexpand.c:3897 0x777488 expand_gimple_basic_block ../../gcc/cfgexpand.c:5863 0x77d38e execute ../../gcc/cfgexpand.c:6509