When printing AST for asm statements first print outputs, then inputs.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 16 Sep 2008 10:09:34 +0000 (10:09 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 16 Sep 2008 10:09:34 +0000 (10:09 +0000)
[r21998]

ast.c

diff --git a/ast.c b/ast.c
index 1dc4398..d9d810d 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1153,18 +1153,19 @@ static void print_asm_statement(const asm_statement_t *statement)
        }
        fputs("(", out);
        print_quoted_string(&statement->asm_text, '"', 1);
-       if(statement->inputs == NULL && statement->outputs == NULL
-                       && statement->clobbers == NULL)
+       if (statement->outputs  == NULL &&
+           statement->inputs   == NULL &&
+           statement->clobbers == NULL)
                goto end_of_print_asm_statement;
 
        fputs(" : ", out);
-       print_asm_arguments(statement->inputs);
-       if(statement->outputs == NULL && statement->clobbers == NULL)
+       print_asm_arguments(statement->outputs);
+       if (statement->inputs == NULL && statement->clobbers == NULL)
                goto end_of_print_asm_statement;
 
        fputs(" : ", out);
-       print_asm_arguments(statement->outputs);
-       if(statement->clobbers == NULL)
+       print_asm_arguments(statement->inputs);
+       if (statement->clobbers == NULL)
                goto end_of_print_asm_statement;
 
        fputs(" : ", out);