summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-10 00:12:31 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-10 00:12:31 +0000
commitd72a7307684992dd4af3f7d33f42b9a02ce1195b (patch)
tree0f56e51681b1d311672d24291622c75a76181353 /gcc/stmt.c
parentd94c522b4868377e43c124e79993103c8bc0a641 (diff)
downloadgcc-d72a7307684992dd4af3f7d33f42b9a02ce1195b.tar.gz
PR inline-asm/20314
* gimplify.c (gimplify_asm_expr): Handle input/output constraints with multiple alternatives. * stmt.c (parse_output_constraint): Fix a typo. * gcc.dg/torture/pr20314-1.c: New test. * gcc.dg/torture/pr20314-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96222 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 64e070b5a0a..a23c23c0a6e 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -323,7 +323,7 @@ parse_output_constraint (const char **constraint_p, int operand_num,
*is_inout = (*p == '+');
/* Canonicalize the output constraint so that it begins with `='. */
- if (p != constraint || is_inout)
+ if (p != constraint || *is_inout)
{
char *buf;
size_t c_len = strlen (constraint);