From: Jan Hubicka Date: Wed, 31 Mar 2021 20:44:20 +0000 (+0200) Subject: Make USES_COMDAT_LOCAL CIF_FINAL_NORMAL X-Git-Tag: basepoints/gcc-12~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7fd3b783238d034018443e43a58ff87908b4db6;p=thirdparty%2Fgcc.git Make USES_COMDAT_LOCAL CIF_FINAL_NORMAL USES_COMDAT_LOCAL is incorrectly defined as CIF_FINAL_ERROR which makes inliner to mis some inlines of functions in comdat section that was previously split. 2021-03-31 Jan Hubicka PR ipa/98265 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL. --- diff --git a/gcc/cif-code.def b/gcc/cif-code.def index 2f430cf1c398..39b89da155fe 100644 --- a/gcc/cif-code.def +++ b/gcc/cif-code.def @@ -125,7 +125,7 @@ DEFCIFCODE(OPTIMIZATION_MISMATCH, CIF_FINAL_ERROR, N_("optimization level attribute mismatch")) /* We can't inline because the callee refers to comdat-local symbols. */ -DEFCIFCODE(USES_COMDAT_LOCAL, CIF_FINAL_ERROR, +DEFCIFCODE(USES_COMDAT_LOCAL, CIF_FINAL_NORMAL, N_("callee refers to comdat-local symbols")) /* We can't inline because of mismatched caller/callee