From 4f78b9a896ea942d9241538d15532b8f1587f420 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 2 Jan 2001 15:49:45 -0800 Subject: 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 --- gcc/cp/parse.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/cp/parse.y') 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); } -- cgit v1.1