]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
semantics.c (finish_asm_statement): Apply decay conversions to input operands.
authorMark Mitchell <mark@codesourcery.com>
Sat, 19 Jun 1999 23:54:52 +0000 (23:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 19 Jun 1999 23:54:52 +0000 (17:54 -0600)
        * semantics.c (finish_asm_statement): Apply decay conversions to
        input operands.

From-SVN: r27616

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

index 32c5e791405deb70a8d9eec74e5b61f3bbf5494f..effe7c5cd4110835814eddca35c8ab8df9171b9c 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 6586937fa49a2e47bf0847aac8465e1633383a12..7267f46aaf3580e020cd3c2a322a01bae7464510 100644 (file)
@@ -741,11 +741,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,