aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-01-02 15:49:45 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-01-02 15:49:45 -0800
commit4f78b9a896ea942d9241538d15532b8f1587f420 (patch)
tree6f47d15496d0c5ff8d25acd1c69deaf37c24d9ed /gcc/c-parse.in
parentf941340f5a825b0320300e70ed828577d4b46260 (diff)
downloadgcc-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/c-parse.in')
-rw-r--r--gcc/c-parse.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index f944ac3..5c46b20 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1,6 +1,6 @@
/* YACC parser for C syntax and for Objective C. -*-c-*-
Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996,
- 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+ 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -1953,6 +1953,7 @@ stmt:
$$ = add_stmt (build_stmt (ASM_STMT, NULL_TREE, $4,
NULL_TREE, NULL_TREE,
NULL_TREE));
+ ASM_INPUT_P ($$) = 1;
}
else
{