[Bug tree-optimization/105385] New: ICE: Aborted (in do_mpfr_arg2): GNU MP: Cannot allocate memory (size=3458764513820540832) with __builtin_jn{,f,l}
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 19:46:27 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105385
Bug ID: 105385
Summary: ICE: Aborted (in do_mpfr_arg2): GNU MP: Cannot
allocate memory (size=3458764513820540832) with
__builtin_jn{,f,l}
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Created attachment 52875
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52875&action=edit
reduced testcase
I don't know if this should be reported against gcc or libmpfr.
Compiler output:
$ x86_64-pc-linux-gnu-gcc testcase.c
GNU MP: Cannot allocate memory (size=3458764513820540832)
testcase.c: In function 'foo':
testcase.c:4:3: internal compiler error: Aborted
4 | __builtin_jn (4292622104, 0xff00ff00ff00ff00);
| ^~~~~~~~~~~~
0x13a3dff crash_signal
/repo/gcc-trunk/gcc/toplev.cc:322
0x100fe49 do_mpfr_arg2
/repo/gcc-trunk/gcc/fold-const-call.cc:232
0x1012295 do_mpfr_arg2
/repo/gcc-trunk/gcc/fold-const-call.cc:222
0x1012295 fold_const_call_sss
/repo/gcc-trunk/gcc/fold-const-call.cc:1462
0x1012295 fold_const_call_1
/repo/gcc-trunk/gcc/fold-const-call.cc:1562
0xe4ab9a fold_builtin_2
/repo/gcc-trunk/gcc/builtins.cc:9376
0xe4ab9a fold_builtin_n
/repo/gcc-trunk/gcc/builtins.cc:9540
0xfdcf3a fold_build_call_array_loc(unsigned int, tree_node*, tree_node*, int,
tree_node**)
/repo/gcc-trunk/gcc/fold-const.cc:13965
0xd52b3f build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc,
vl_embed>*, tree_node*)
/repo/gcc-trunk/gcc/c/c-typeck.cc:3217
0xd74093 c_parser_postfix_expression_after_primary
/repo/gcc-trunk/gcc/c/c-parser.cc:10561
0xd6b3e0 c_parser_postfix_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:10234
0xd6f8ea c_parser_unary_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:8261
0xd71081 c_parser_cast_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:8103
0xd712ee c_parser_binary_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:7906
0xd7277b c_parser_conditional_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:7606
0xd72fa0 c_parser_expr_no_commas
/repo/gcc-trunk/gcc/c/c-parser.cc:7521
0xd73211 c_parser_expression
/repo/gcc-trunk/gcc/c/c-parser.cc:10697
0xd73978 c_parser_expression_conv
/repo/gcc-trunk/gcc/c/c-parser.cc:10736
0xd68957 c_parser_statement_after_labels
/repo/gcc-trunk/gcc/c/c-parser.cc:6263
0xd6af3a c_parser_compound_statement_nostart
/repo/gcc-trunk/gcc/c/c-parser.cc:5800
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list