Commit 1bef1e7c by Mark Mitchell Committed by Mark Mitchell

* c-typeck.c (c_expand_asm_operands): Fix typo.

From-SVN: r30095
parent 92115015
Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
* c-typeck.c (c_expand_asm_operands): Fix typo.
Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk> Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* arm.c (fpu_rhs_operand): Verify modes. * arm.c (fpu_rhs_operand): Verify modes.
......
...@@ -6538,7 +6538,7 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) ...@@ -6538,7 +6538,7 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
|| TREE_CODE (output) == FIX_FLOOR_EXPR || TREE_CODE (output) == FIX_FLOOR_EXPR
|| TREE_CODE (output) == FIX_ROUND_EXPR || TREE_CODE (output) == FIX_ROUND_EXPR
|| TREE_CODE (output) == FIX_CEIL_EXPR) || TREE_CODE (output) == FIX_CEIL_EXPR)
output = TREE_OPERAND (output, 1); output = TREE_OPERAND (output, 0);
lvalue_or_else (o[i], "invalid lvalue in asm statement"); lvalue_or_else (o[i], "invalid lvalue in asm statement");
} }
......
/* { dg-do compile { target i?86-*-* } } */
struct x {
int selector;
};
void f()
{
struct x* addr;
__asm__("mov %%gs,%0":"=r" ((unsigned short)addr->selector)); /* { dg-error "lvalue" "casts make rvalues" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment