This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Remove kludge in commit_edge_insertions
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Apr 2011 23:09:01 +0200
- Subject: Re: [RFC] Remove kludge in commit_edge_insertions
- References: <201104042307.56517.ebotcazou@adacore.com>
> * basic-block.h (force_nonfallthru): Move to...
> * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
> (force_nonfallthru): ...here.
> * cfghooks.c (force_nonfallthru): New function.
> * cfgrtl.c (force_nonfallthru): Rename into...
> (rtl_force_nonfallthru): ...this.
> (commit_one_edge_insertion): Do not set AUX field.
> (commit_edge_insertions): Do not discover new basic blocks.
> (rtl_cfg_hooks): Add rtl_force_nonfallthru.
> (cfg_layout_rtl_cfg_hooks): Likewise.
> * function.c (thread_prologue_and_epilogue_insns): Remove bogus
> ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
> * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
Installed after bootstrapping/regtesting on SPARC/Solaris, SPARC64/Solaris,
IA-64/Linux and re-bootstrapping/regtesting on x86-64/Linux.
--
Eric Botcazou