* c-typeck.c (c_expand_asm_operands): Fix typo.
From-SVN: r30095
This commit is contained in:
parent
921150153a
commit
1bef1e7c43
@ -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.
|
||||
|
@ -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");
|
||||
}
|
||||
|
11
gcc/testsuite/gcc.dg/asm-1.c
Normal file
11
gcc/testsuite/gcc.dg/asm-1.c
Normal 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" } */
|
||||
}
|
Loading…
Reference in New Issue
Block a user