[gcc r11-7940] Make USES_COMDAT_LOCAL CIF_FINAL_NORMAL

Jan Hubicka hubicka@gcc.gnu.org
Wed Mar 31 20:45:38 GMT 2021


https://gcc.gnu.org/g:e7fd3b783238d034018443e43a58ff87908b4db6

commit r11-7940-ge7fd3b783238d034018443e43a58ff87908b4db6
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.

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 2f430cf1c39..39b89da155f 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


More information about the Gcc-cvs mailing list