public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Jambor <mjambor@suse.cz>
To: "Martin Liška" <mliska@suse.cz>,
	"Bernhard Reutner-Fischer" <rep.dot.nop@gmail.com>,
	"Jeff Law" <law@redhat.com>
Cc: Richard Guenther <richard.guenther@gmail.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Remove dead functions and fix VMS target by moving back some functions.
Date: Tue, 09 Oct 2018 22:53:00 -0000	[thread overview]
Message-ID: <ri636tesvu1.fsf@suse.cz> (raw)
In-Reply-To: <794c78c4-0950-420c-2fd4-21b5e17d881f@suse.cz>

On Tue, Oct 09 2018, Martin Liška wrote:
> Hi.
>
> Utilizing rtags' --find-dead-functions I'm suggesting a removal of part
> of the functions reported with the script. I built all cross compilers
> defined in contrib/config-list.mk and I fixed VMS targets that I broke
> in previous removal.
>
> If the folks are happy with the removal, I can probably continue with that
> at some point in stage3 or so.
>
> Ready for trunk?
> Thanks,
> Martin
> From f69d866da42a46783ab57181692583d2ecf30c49 Mon Sep 17 00:00:00 2001
> From: marxin <mliska@suse.cz>
> Date: Fri, 5 Oct 2018 16:59:07 +0200
> Subject: [PATCH] Remove dead functions and fix VMS target by moving back some
>  functions.
>
> gcc/ChangeLog:
>
> 2018-10-09  Martin Liska  <mliska@suse.cz>
>
> 	* attribs.c (register_attribute): Remove unused functions.
> 	* cfganal.c (control_dependences::clear_control_dependence_bitmap): Likewise.
> 	(bitmap_union_of_succs): Likewise.
> 	* cfganal.h (bitmap_union_of_succs): Likewise.
> 	* cfgloop.c (loop_exits_to_bb_p): Likewise.
> 	* cfgloop.h (loop_exits_to_bb_p): Likewise.
> 	* cgraph.h (compute_call_stmt_bb_frequency): Likewise.
> 	* cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
> 	* cselib.c (cselib_dummy_expand_value_rtx_cb): Likewise.
> 	* cselib.h (cselib_dummy_expand_value_rtx_cb): Likewise.
> 	* df-core.c (df_reg_defined): Likewise.
> 	(df_reg_used): Likewise.
> 	* df-scan.c (df_hard_reg_used_count): Likewise.
> 	* df.h (df_reg_defined): Likewise.
> 	(df_reg_used): Likewise.
> 	(df_hard_reg_used_count): Likewise.
> 	* dojump.c (init_pending_stack_adjust): Likewise.
> 	* dojump.h (init_pending_stack_adjust): Likewise.
> 	* dwarf2out.c (add_AT_vms_delta): Move function back after
> 	removal.
> 	(dwarf2out_set_demangle_name_func): REmove unused functions.
> 	* dwarf2out.h (dwarf2out_set_demangle_name_func): Likewise.
> 	* emit-rtl.c (emit_jump_insn_before_noloc): Likewise.
> 	(emit_call_insn_before_noloc): Likewise.
> 	(emit_barrier_before): Likewise.
> 	(emit_call_insn_after_noloc): Likewise.
> 	(emit_call_insn_after_setloc): Likewise.
> 	(emit_jump_insn_before_setloc): Likewise.
> 	(emit_call_insn_before_setloc): Likewise.
> 	(emit_call_insn_before): Likewise.
> 	* except.c (remove_eh_handler): Likewise.
> 	(get_eh_region_from_rtx): Likewise.
> 	* except.h (remove_eh_handler): Likewise.
> 	(get_eh_region_from_rtx): Likewise.
> 	* fold-const.c (div_if_zero_remainder): Likewise.
> 	(fold_unary_to_constant): Likewise.
> 	* fold-const.h (fold_unary_to_constant): Likewise.
> 	(div_if_zero_remainder): Likewise.
> 	* function.c (get_hard_reg_initial_reg): Likewise.
> 	(get_last_funcdef_no): Likewise.
> 	* function.h (get_hard_reg_initial_reg): Likewise.
> 	(get_last_funcdef_no): Likewise.
> 	* ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Likewise.
> 	(ggc_cleared_alloc_ptr_array_two_args): Likewise.
> 	(ggc_splay_alloc): Likewise.
> 	(ggc_splay_dont_free): Likewise.
> 	* gimple-expr.c (is_gimple_address): Likewise.
> 	* gimple-expr.h (is_gimple_address): Likewise.
> 	* gimple-iterator.c (gsi_for_phi): Likewise.
> 	* gimple-iterator.h (gsi_for_phi): Likewise.
> 	* gimple-ssa-sprintf.c (struct format_result): Likewise.
> 	(format_result::operator+=): Likewise.
> 	(struct directive): Likewise.
> 	* gimple-ssa-warn-alloca.c (struct alloca_type_and_limit): Likewise.
> 	* gimple.c (gimple_unsigned_type): Likewise.
> 	(gimple_call_builtin_p): Likewise.
> 	* gimple.h (gimple_unsigned_type): Likewise.
> 	(gimple_call_builtin_p): Likewise.
> 	* gimplify.c (gimple_current_bind_expr): Likewise.
> 	* gimplify.h (gimple_current_bind_expr): Likewise.
> 	* haifa-sched.c (haifa_classify_insn): Likewise.
> 	* hsa-common.c (hsa_add_kernel_dependency): Likewise.
> 	(hsa_brig_function_name): Likewise.
> 	* hsa-common.h (hsa_add_kernel_dependency): Likewise.
> 	(hsa_brig_function_name): Likewise.
> 	* ipa-cp.c (ipcp_vr_lattice::meet_with): Likewise.

Interesting, I believe that a class representing a lattice should have a
meet function with its own type.  In this case it would mean moving the
call to ipa_vr_operation_and_type_effects from the caller into the
method to clearly describe the semantics.  But perhaps it does not
matter if we do not have the overload in the meantime.

> 	* ipa-devirt.c (vtable_pointer_value_to_binfo): Likewise.
> 	* ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Likewise.
> 	* ipa-icf-gimple.h: Likewise.
> 	* ipa-icf.c (sem_item::sem_item): Likewise.
> 	(sem_function::sem_function): Likewise.
> 	(sem_function::icf_handled_component_p): Likewise.
> 	(sem_variable::sem_variable): Likewise.
> 	* ipa-icf.h: Likewise.
> 	* ipa-param-manipulation.c (index_in_adjustments_multiple_times_p): Likewise.
> 	(ipa_combine_adjustments): Likewise.

This a known case.  I mean, also have a patch removing, actually
replacing it, but the goal has always been that we eventually combine
adjustments.

Martin


  reply	other threads:[~2018-10-09 20:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-24  7:37 [PATCH 0/4] Clean-up warnings spotted by Rtags marxin
2018-09-24  7:37 ` [PATCH 3/4] Fix small coding style issues (PR fortran/87394) marxin
2018-09-24 14:39   ` Jeff Law
2018-09-24  7:37 ` [PATCH 4/4] Fix scaling of a sreal number marxin
2018-09-24 14:42   ` Jeff Law
2018-09-24  7:37 ` [PATCH 1/4] Add filter-rtags-warnings.py script marxin
2018-09-24 14:45   ` Jeff Law
2018-09-24  7:39 ` [PATCH 2/4] Remove unused functions and fields marxin
2018-09-24 14:42   ` Jeff Law
2018-09-25  7:18     ` Martin Liška
2018-09-25 12:31       ` Richard Biener
2018-09-25 13:40         ` Jeff Law
2018-09-26  9:01           ` Martin Liška
2018-09-27 11:18             ` Bernhard Reutner-Fischer
2018-10-03 16:46               ` Jeff Law
2018-10-03 19:35                 ` Bernhard Reutner-Fischer
2018-10-05  2:19                   ` Bernhard Reutner-Fischer
2018-10-05 13:41                     ` Martin Liška
2018-10-09  8:52                       ` [PATCH] Remove dead functions and fix VMS target by moving back some functions Martin Liška
2018-10-09 22:53                         ` Martin Jambor [this message]
2018-10-10 11:13                           ` Martin Liška
2018-10-10 11:17                             ` Martin Jambor
2018-10-18 23:55   ` [PATCH 2/4] Remove unused functions and fields Ian Lance Taylor
2018-10-22 13:05     ` Martin Liška
2018-10-22 17:50       ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ri636tesvu1.fsf@suse.cz \
    --to=mjambor@suse.cz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=mliska@suse.cz \
    --cc=rep.dot.nop@gmail.com \
    --cc=richard.guenther@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).