This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Named asm operands patch
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: Named asm operands patch
- From: Florian Weimer <fw at deneb dot enyo dot de>
- Date: Sun, 14 Oct 2001 14:18:01 +0200
- Cc: gcc-patches at gcc dot gnu dot org, esk at ira dot uka dot de
- References: <20011011002343.A4962@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> The patch looked reasonable, as far as it went. The major
> thing missing with it is that there was no provision for
> how this interacted with matching constraints, which would
> still have required the use of operand numbers.
Is the comment at the top of expand_asm_operands() stmt.c still
correct? I think the patch changes the representation of inputs and
outputs. Does the following patch reflect the new situation?
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stmt.c,v
retrieving revision 1.219
diff -u -r1.219 stmt.c
--- stmt.c 2001/10/11 07:07:27 1.219
+++ stmt.c 2001/10/14 11:55:28
@@ -1458,7 +1458,9 @@
STRING is the instruction template.
OUTPUTS is a list of output arguments (lvalues); INPUTS a list of inputs.
Each output or input has an expression in the TREE_VALUE and
- a constraint-string in the TREE_PURPOSE.
+ and a tree list in TREE_PURPOSE which in turn contains a constraint
+ name in TREE_VALUE (or NULL_TREE) and a constraint string
+ in TREE_PURPOSE.
CLOBBERS is a list of STRING_CST nodes each naming a hard register
that is clobbered by this insn.