summaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-10-08 09:37:06 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-10-08 09:37:06 -0700
commit31ed8fea3d618377c79be11b05f41539df915cc4 (patch)
tree29cbaa01253970fbc753eff9f70ce21ac5d8b696 /gcc/c-tree.h
parentbbd300a97b35c0a754ee7bed771a5f1e74eb43cf (diff)
downloadgcc-31ed8fea3d618377c79be11b05f41539df915cc4.tar.gz
c-common.h (struct c_lang_decl): Add declared_inline.
* c-common.h (struct c_lang_decl): Add declared_inline. * c-tree.h (DECL_DECLARED_INLINE_P): New. * c-lang.c (c_disregard_inline_limits): Use it. * c-decl.c (duplicate_decls): Likewise. (pushdecl, redeclaration_error_message): Likewise. (pushdecl): Allocate DECL_LANG_SPECIFIC if needed. (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P. Set DECL_INLINE if -finline-functions. (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here. * cp-tree.h (struct lang_decl_flags): Remove declared_inline. (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl. From-SVN: r46079
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 6f1833af414..6d0553902d4 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -98,9 +98,14 @@ struct lang_decl
/* In an IDENTIFIER_NODE, nonzero if this identifier is actually a
keyword. C_RID_CODE (node) is then the RID_* value of the keyword,
and C_RID_YYCODE is the token number wanted by Yacc. */
-
#define C_IS_RESERVED_WORD(id) TREE_LANG_FLAG_0 (id)
+/* This function was declared inline. This flag controls the linkage
+ semantics of 'inline'; whether or not the function is inlined is
+ controlled by DECL_INLINE. */
+#define DECL_DECLARED_INLINE_P(NODE) \
+ (DECL_LANG_SPECIFIC (NODE)->base.declared_inline)
+
/* In a RECORD_TYPE, a sorted array of the fields of the type. */
struct lang_type
{