From: Martin Liska Date: Tue, 25 Oct 2016 12:20:19 +0000 (+0000) Subject: Fix 2 typos in IPA ICF pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b93ee1bb06d43c0547b4de6f1389deafa28a474c;p=gcc.git Fix 2 typos in IPA ICF pass * gcc.dg/ipa/ipa-icf-32.c: Removed one scanned pattern. Martin Liska PR ipa/78099 * common.opt: Mark flag_ipa_icf_variables as Optimization flag. * ipa-icf.c (sem_function::get_hash): Add target optimization node to hash. From-SVN: r241510 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aaf07f436d7..e0601576db7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2016-10-25 H.J. Lu + Martin Liska + + PR ipa/78099 + * common.opt: Mark flag_ipa_icf_variables as Optimization flag. + * ipa-icf.c (sem_function::get_hash): Add target optimization + node to hash. + 2016-10-25 Wilco Dijkstra PR target/78041 diff --git a/gcc/common.opt b/gcc/common.opt index eefbb4601bd..1872d51b417 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1597,7 +1597,7 @@ Common Report Var(flag_ipa_icf_functions) Optimization Perform Identical Code Folding for functions. fipa-icf-variables -Common Report Var(flag_ipa_icf_variables) +Common Report Var(flag_ipa_icf_variables) Optimization Perform Identical Code Folding for variables. fipa-reference diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 3886fa66180..e8880cb4fe2 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -300,6 +300,7 @@ sem_function::get_hash (void) (cl_target_option_hash (TREE_TARGET_OPTION (DECL_FUNCTION_SPECIFIC_TARGET (decl)))); if (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)) + hstate.add_wide_int (cl_optimization_hash (TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)))); hstate.add_flag (DECL_CXX_CONSTRUCTOR_P (decl)); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02d8ac6303d..c7c233f6c92 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-10-25 Martin Liska + + * gcc.dg/ipa/ipa-icf-32.c: Removed one scanned pattern. + 2016-10-25 Wilco Dijkstra PR target/78041 diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c b/gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c index 9f42918b067..df11ac5f154 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c @@ -19,5 +19,4 @@ int main() return foo (0) + bar (0); } -/* { dg-final { scan-ipa-dump "optimization flags are different" "icf" } } */ /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */