semantics.c (finish_asm_statement): Apply decay conversions to input operands.
* semantics.c (finish_asm_statement): Apply decay conversions to input operands. From-SVN: r27617
This commit is contained in:
parent
c1cb76e980
commit
7dc5bd62ab
@ -1,5 +1,8 @@
|
|||||||
1999-06-19 Mark Mitchell <mark@codesourcery.com>
|
1999-06-19 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* semantics.c (finish_asm_statement): Apply decay conversions to
|
||||||
|
input operands.
|
||||||
|
|
||||||
* decl.c (expand_static_init): When building an anonymous function
|
* decl.c (expand_static_init): When building an anonymous function
|
||||||
for use with atexit, compute its body before and after entering
|
for use with atexit, compute its body before and after entering
|
||||||
the function.
|
the function.
|
||||||
|
@ -754,11 +754,16 @@ finish_asm_stmt (cv_qualifier, string, output_operands,
|
|||||||
if (output_operands != NULL_TREE || input_operands != NULL_TREE
|
if (output_operands != NULL_TREE || input_operands != NULL_TREE
|
||||||
|| clobbers != NULL_TREE)
|
|| clobbers != NULL_TREE)
|
||||||
{
|
{
|
||||||
|
tree t;
|
||||||
|
|
||||||
if (cv_qualifier != NULL_TREE
|
if (cv_qualifier != NULL_TREE
|
||||||
&& cv_qualifier != ridpointers[(int) RID_VOLATILE])
|
&& cv_qualifier != ridpointers[(int) RID_VOLATILE])
|
||||||
cp_warning ("%s qualifier ignored on asm",
|
cp_warning ("%s qualifier ignored on asm",
|
||||||
IDENTIFIER_POINTER (cv_qualifier));
|
IDENTIFIER_POINTER (cv_qualifier));
|
||||||
|
|
||||||
|
for (t = input_operands; t; t = TREE_CHAIN (t))
|
||||||
|
TREE_VALUE (t) = decay_conversion (TREE_VALUE (t));
|
||||||
|
|
||||||
c_expand_asm_operands (string, output_operands,
|
c_expand_asm_operands (string, output_operands,
|
||||||
input_operands,
|
input_operands,
|
||||||
clobbers,
|
clobbers,
|
||||||
|
Loading…
Reference in New Issue
Block a user