aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authorMartin Liska <marxin@gcc.gnu.org>2016-10-25 12:20:19 +0000
committerMartin Liska <marxin@gcc.gnu.org>2016-10-25 12:20:19 +0000
commitb93ee1bb06d43c0547b4de6f1389deafa28a474c (patch)
tree9c50b069f6317b5844b0e47ced67a3705a4e9e07 /gcc/ipa-icf.c
parentbc352be13c2bc8dba38e7636f9d021bc13b50c46 (diff)
downloadgcc-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
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r--gcc/ipa-icf.c1
1 files changed, 1 insertions, 0 deletions
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));