This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] Change TARGET_MD_ASM_CLOBBERS to take output and input lists as well.
- From: Richard Henderson <rth at redhat dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 Mar 2005 10:02:30 -0800
- Subject: Re: [RFA:] Change TARGET_MD_ASM_CLOBBERS to take output and input lists as well.
- References: <200502271628.j1RGS0Ul001097@ignucius.se.axis.com>
On Sun, Feb 27, 2005 at 05:28:00PM +0100, Hans-Peter Nilsson wrote:
> * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
> imply that this is called once, independent of asms in code.
> Adjust to now being pased output and input lists. Mention helper
> function decl_overlaps_hard_reg_set_p.
> * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
> hook_tree_tree_identity and to take three trees, returning third.
> * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
> prototype.
> * stmt.c: include hard-reg-set.h before tree.h.
> (decl_overlaps_hard_reg_set_p): New function, broken out from...
> (decl_conflicts_with_clobbers_p): Call
> decl_overlaps_hard_reg_set_p.
> (expand_asm_operands): Pass output and input lists in call to
> targetm.md_asm_clobbers.
> * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
> hook_tree_tree_tree_tree_3rd_identity.
> * target.h (struct gcc_target.md_asm_clobbers): Take three tree
> parameters.
> * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
> * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
> parameters, first two unused.
Ok.
r~