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

From-SVN: r30095
This commit is contained in:
Mark Mitchell 1999-10-20 00:18:10 +00:00 committed by Mark Mitchell
parent 921150153a
commit 1bef1e7c43
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
* arm.c (fpu_rhs_operand): Verify modes.

View File

@ -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_ROUND_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");
}

View File

@ -0,0 +1,11 @@
/* { 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" } */
}