https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103513
Zhendong Su <zhendong.su at inf dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zhendong.su at inf dot ethz.ch
--- Comment #6 from Zhendong Su <zhendong.su at inf dot ethz.ch> ---
Another test that fails at -Os and above:
[576] % gcctk -O1 -c small.c
[577] %
[577] % gcctk -Os -c small.c
during IPA pass: inline
small.c:8:1: internal compiler error: in evaluate_conditions_for_known_args, at
ipa-fnsummary.c:516
8 | }
| ^
0xbd4256 evaluate_conditions_for_known_args
../../gcc-trunk/gcc/ipa-fnsummary.c:516
0xbd952e evaluate_properties_for_edge(cgraph_edge*, bool, unsigned int*,
unsigned int*, ipa_auto_call_arg_values*, bool)
../../gcc-trunk/gcc/ipa-fnsummary.c:726
0xbf0323 do_estimate_edge_time(cgraph_edge*, sreal*)
../../gcc-trunk/gcc/ipa-inline-analysis.c:197
0xbf1d34 do_estimate_edge_size(cgraph_edge*)
../../gcc-trunk/gcc/ipa-inline-analysis.c:319
0x1c0bc14 estimate_edge_size
../../gcc-trunk/gcc/ipa-inline.h:79
0x1c0bc14 estimate_edge_growth
../../gcc-trunk/gcc/ipa-inline.h:100
0x1c0eb89 want_inline_small_function_p
../../gcc-trunk/gcc/ipa-inline.c:912
0x1c1425c inline_small_functions
../../gcc-trunk/gcc/ipa-inline.c:2050
0x1c1425c ipa_inline
../../gcc-trunk/gcc/ipa-inline.c:2756
0x1c1425c execute
../../gcc-trunk/gcc/ipa-inline.c:3155
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.
[578] %
[578] % cat small.c
int a;
void b(int c) {
int d = 3;
d ^= c < 2;
if (d < 3 && a)
while (1)
b(!a);
}