semantics.c (finish_asm_statement): Apply decay conversions to input operands.
authorMark Mitchell <mark@codesourcery.com>
Sat, 19 Jun 1999 23:56:56 +0000 (23:56 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 19 Jun 1999 23:56:56 +0000 (17:56 -0600)
        * semantics.c (finish_asm_statement): Apply decay conversions to
        input operands.

From-SVN: r27617

gcc/cp/ChangeLog
gcc/cp/semantics.c

index eca957246c27fe2dd7226f450b8d1a2e16e15eff..9885a33a0b7f07236c27f98addfd95529f5f2c6e 100644 (file)
@@ -1,5 +1,8 @@
 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
        for use with atexit, compute its body before and after entering
        the function.
index ee6b99b3f2007581cd72e164a97c15772217bb8e..1659ec85fe005645bcce9f85de9bc70019e591d5 100644 (file)
@@ -754,11 +754,16 @@ finish_asm_stmt (cv_qualifier, string, output_operands,
       if (output_operands != NULL_TREE || input_operands != NULL_TREE
            || clobbers != NULL_TREE)
        {
+         tree t;
+
          if (cv_qualifier != NULL_TREE
              && cv_qualifier != ridpointers[(int) RID_VOLATILE])
            cp_warning ("%s qualifier ignored on asm",
                        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,
                                 input_operands, 
                                 clobbers,