diff options
author | Martin Liska <marxin@gcc.gnu.org> | 2016-10-25 12:20:19 +0000 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-10-25 12:20:19 +0000 |
commit | b93ee1bb06d43c0547b4de6f1389deafa28a474c (patch) | |
tree | 9c50b069f6317b5844b0e47ced67a3705a4e9e07 | |
parent | bc352be13c2bc8dba38e7636f9d021bc13b50c46 (diff) | |
download | gcc-b93ee1bb06d43c0547b4de6f1389deafa28a474c.zip gcc-b93ee1bb06d43c0547b4de6f1389deafa28a474c.tar.gz gcc-b93ee1bb06d43c0547b4de6f1389deafa28a474c.tar.bz2 |
Fix 2 typos in IPA ICF pass
* gcc.dg/ipa/ipa-icf-32.c: Removed one scanned pattern.
Martin Liska <mliska@suse.cz>
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
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/common.opt | 2 | ||||
-rw-r--r-- | gcc/ipa-icf.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c | 1 |
5 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aaf07f4..e0601576d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2016-10-25 H.J. Lu <hongjiu.lu@intel.com> + Martin Liska <mliska@suse.cz> + + 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 <wdijkstr@arm.com> PR target/78041 diff --git a/gcc/common.opt b/gcc/common.opt index eefbb46..1872d51 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 3886fa6..e8880cb 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 02d8ac6..c7c233f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-10-25 Martin Liska <mliska@suse.cz> + + * gcc.dg/ipa/ipa-icf-32.c: Removed one scanned pattern. + 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com> 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 9f42918..df11ac5 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" } } */ |