From: Jan Hubicka Date: Thu, 12 Aug 2021 18:52:54 +0000 (+0200) Subject: Fix condition testing void functions in ipa-split. X-Git-Tag: basepoints/gcc-13~5426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6da2cddcf0e959de6666d4d74411af23507f9f9;p=thirdparty%2Fgcc.git Fix condition testing void functions in ipa-split. gcc/ChangeLog: 2021-08-12 Jan Hubicka * ipa-split.c (consider_split): Fix condition testing void functions. --- diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 5e918ee3fbf6..c68577d04a99 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -546,8 +546,9 @@ consider_split (class split_point *current, bitmap non_ssa_vars, } } } - if (!VOID_TYPE_P (TREE_TYPE (current_function_decl))) - call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl), + if (!VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl)))) + call_overhead += estimate_move_cost (TREE_TYPE (TREE_TYPE + (current_function_decl)), false); if (current->split_size <= call_overhead)