From: Aditya Kumar Date: Thu, 7 May 2015 17:57:11 +0000 (+0000) Subject: gcov-tool.c (do_merge): Refactore to remove int ret. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d57c99458933a21fdf94f508191f145ad8d5ec58;p=gcc.git gcov-tool.c (do_merge): Refactore to remove int ret. * gcov-tool.c (do_merge): Refactore to remove int ret. * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change !type == FUNC to type != FUNC. * reload.h (struct target_reload): Changee to type of x_spill_indirect_levels from bool to unsigned char. From-SVN: r222884 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a14a4a5bd15..f9735014b63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-05-06 Aditya Kumar + + * gcov-tool.c (do_merge): Refactore to remove int ret. + * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change + !type == FUNC to type != FUNC. + * reload.h (struct target_reload): Changee to type of + x_spill_indirect_levels from bool to unsigned char. + 2015-05-07 Richard Sandiford * rtl.h (always_void_p): New function. diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index fd27d7c11ad..b2a4583d43b 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -193,7 +193,6 @@ static int do_merge (int argc, char **argv) { int opt; - int ret; const char *output_dir = 0; int w1 = 1, w2 = 1; @@ -222,12 +221,10 @@ do_merge (int argc, char **argv) if (output_dir == NULL) output_dir = "merged_profile"; - if (argc - optind == 2) - ret = profile_merge (argv[optind], argv[optind+1], output_dir, w1, w2); - else + if (argc - optind != 2) merge_usage (); - return ret; + return profile_merge (argv[optind], argv[optind+1], output_dir, w1, w2); } /* If N_VAL is no-zero, normalize the profile by setting the largest counter diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 1fbdf6ddaff..3c4ac05681b 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -505,7 +505,7 @@ sem_item::hash_referenced_symbol_properties (symtab_node *ref, { if (is_a (ref)) { - if ((!type == FUNC || address || !opt_for_fn (decl, optimize_size)) + if ((type != FUNC || address || !opt_for_fn (decl, optimize_size)) && !opt_for_fn (ref->decl, optimize_size) && !DECL_UNINLINABLE (ref->decl)) { diff --git a/gcc/reload.h b/gcc/reload.h index a58b9025bf5..a089faafffe 100644 --- a/gcc/reload.h +++ b/gcc/reload.h @@ -168,7 +168,7 @@ struct target_reload { value indicates the level of indirect addressing supported, e.g., two means that (MEM (MEM (REG n))) is also valid if (REG n) does not get a hard register. */ - bool x_spill_indirect_levels; + unsigned char x_spill_indirect_levels; /* True if caller-save has been reinitialized. */ bool x_caller_save_initialized_p;