diff options
author | Richard Henderson <rth@redhat.com> | 2001-01-02 15:49:45 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-01-02 15:49:45 -0800 |
commit | 4f78b9a896ea942d9241538d15532b8f1587f420 (patch) | |
tree | 6f47d15496d0c5ff8d25acd1c69deaf37c24d9ed /gcc/cp | |
parent | f941340f5a825b0320300e70ed828577d4b46260 (diff) | |
download | gcc-4f78b9a896ea942d9241538d15532b8f1587f420.zip gcc-4f78b9a896ea942d9241538d15532b8f1587f420.tar.gz gcc-4f78b9a896ea942d9241538d15532b8f1587f420.tar.bz2 |
c-common.h (ASM_INPUT_P): New.
* c-common.h (ASM_INPUT_P): New.
* c-parse.in (asm): Set it when needed.
* c-semantics.c (genrtl_asm_stmt): Test it instead of the
existance of an operand.
* cp/parse.y (asm): Set ASM_INPUT_P.
From-SVN: r38638
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/parse.y | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 61bd1f2..3d89415 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2001-01-02 Richard Henderson <rth@redhat.com> + + * parse.y (asm): Set ASM_INPUT_P. + 2001-01-02 Jason Merrill <jason@redhat.com> * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 4e76394..27f949a 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -1,6 +1,6 @@ /* YACC parser for C++ syntax. Copyright (C) 1988, 1989, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000 Free Software Foundation, Inc. + 1999, 2000, 2001 Free Software Foundation, Inc. Hacked by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -3398,7 +3398,8 @@ simple_stmt: { $$ = finish_return_stmt ($2); } | asm_keyword maybe_cv_qualifier '(' string ')' ';' { $$ = finish_asm_stmt ($2, $4, NULL_TREE, NULL_TREE, - NULL_TREE); } + NULL_TREE); + ASM_INPUT_P ($$) = 1; } /* This is the case with just output operands. */ | asm_keyword maybe_cv_qualifier '(' string ':' asm_operands ')' ';' { $$ = finish_asm_stmt ($2, $4, $6, NULL_TREE, NULL_TREE); } |