This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Named asm operands patch


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.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]