https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123229
Josef Melcr <jmelcr at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmelcr at gcc dot gnu.org
--- Comment #15 from Josef Melcr <jmelcr at gcc dot gnu.org> ---
libcryptopp has the same issue.
$ gcc/inst/libexec/bin/g++ -O2 -flto=auto -c dll.ii
$ gcc/inst/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto1 -quiet dll.o
during IPA pass: inline
lto1: internal compiler error: in estimate_calls_size_and_time, at
ipa-fnsummary.cc:3821
0x23fd7ed internal_error(char const*, ...)
/home/jmelcr/gcc/src/gcc/diagnostic-global-context.cc:787
0x9b1e8d fancy_abort(char const*, int, char const*)
/home/jmelcr/gcc/src/gcc/diagnostics/context.cc:1805
0x7fa0be estimate_calls_size_and_time
/home/jmelcr/gcc/src/gcc/ipa-fnsummary.cc:3821
0xd5495a ipa_call_context::estimate_size_and_time(ipa_call_estimates*, bool,
bool)
/home/jmelcr/gcc/src/gcc/ipa-fnsummary.cc:4128
0xd6a9fb do_estimate_edge_time(cgraph_edge*, sreal*)
/home/jmelcr/gcc/src/gcc/ipa-inline-analysis.cc:233
0xd6b2b9 do_estimate_edge_size(cgraph_edge*)
/home/jmelcr/gcc/src/gcc/ipa-inline-analysis.cc:326
0xd6cbb2 estimate_edge_size(cgraph_edge*)
/home/jmelcr/gcc/src/gcc/ipa-inline.h:79
0xd6cbb2 estimate_edge_growth(cgraph_edge*)
/home/jmelcr/gcc/src/gcc/ipa-inline.h:100
0x21e3264 want_inline_small_function_p
/home/jmelcr/gcc/src/gcc/ipa-inline.cc:1017
0x21e537c update_caller_keys
/home/jmelcr/gcc/src/gcc/ipa-inline.cc:1634
0x21e77dd inline_small_functions
/home/jmelcr/gcc/src/gcc/ipa-inline.cc:2457
0x21e77dd ipa_inline
/home/jmelcr/gcc/src/gcc/ipa-inline.cc:2911
0x21e77dd execute
/home/jmelcr/gcc/src/gcc/ipa-inline.cc:3434
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.
Only at -O2 and above.