From: Mark Mitchell Date: Sat, 19 Jun 1999 23:54:52 +0000 (+0000) Subject: semantics.c (finish_asm_statement): Apply decay conversions to input operands. X-Git-Tag: prereleases/gcc-2.95-test~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697f7813c87d498b34a15b5b29516fa01dbd37aa;p=thirdparty%2Fgcc.git semantics.c (finish_asm_statement): Apply decay conversions to input operands. * semantics.c (finish_asm_statement): Apply decay conversions to input operands. From-SVN: r27616 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 32c5e791405d..effe7c5cd411 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 1999-06-19 Mark Mitchell + * 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. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 6586937fa49a..7267f46aaf35 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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,