[gcc r10-9646] Make USES_COMDAT_LOCAL CIF_FINAL_NORMAL
Jan Hubicka
hubicka@gcc.gnu.org
Wed Mar 31 20:47:08 GMT 2021
https://gcc.gnu.org/g:42c22a4d724b4a4b0183f4412c3d42c9cca29d30
commit r10-9646-g42c22a4d724b4a4b0183f4412c3d42c9cca29d30
Author: Jan Hubicka <jh@suse.cz>
Date: Wed Mar 31 22:44:20 2021 +0200
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 <hubicka@ucw.cz>
PR ipa/98265
* cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
(cherry picked from commit e7fd3b783238d034018443e43a58ff87908b4db6)
Diff:
---
gcc/cif-code.def | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cif-code.def b/gcc/cif-code.def
index 31c18c6c691..d306109d148 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 attributes. */
More information about the Gcc-cvs
mailing list