[Bug d/109231] [13 regression] Comparison failure in libphobos/libdruntime/rt/util/typeinfo.o
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 31 09:26:13 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109231
--- Comment #35 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Sorry for wasting your time.
--- a/gcc/tree-inline.cc
+++ b/gcc/tree-inline.cc
@@ -2787,6 +2787,8 @@ initialize_cfun (tree new_fndecl, tree callee_fndecl,
profile_count count)
/* Get clean struct function. */
push_struct_function (new_fndecl, true);
targetm.target_option.relayout_function (new_fndecl);
+ if (INTEGRAL_TYPE_P (TREE_TYPE (DECL_RESULT (new_fndecl))))
+ gen_raw_REG (DECL_MODE (DECL_RESULT (new_fndecl)), 8);
/* We will rebuild these, so just sanity check that they are empty. */
gcc_assert (VALUE_HISTOGRAMS (cfun) == NULL);
or could be
gen_raw_REG (TYPE_MODE (TREE_TYPE (DECL_RESULT (new_fndecl))), 8);
More information about the Gcc-bugs
mailing list