aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-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/cp/cp-tree.h
parentbbd300a97b35c0a754ee7bed771a5f1e74eb43cf (diff)
downloadgcc-31ed8fea3d618377c79be11b05f41539df915cc4.zip
gcc-31ed8fea3d618377c79be11b05f41539df915cc4.tar.gz
gcc-31ed8fea3d618377c79be11b05f41539df915cc4.tar.bz2
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/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 98e747d..0376994 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1705,17 +1705,16 @@ struct lang_decl_flags
unsigned deferred : 1;
unsigned use_template : 2;
unsigned nonconverting : 1;
- unsigned declared_inline : 1;
unsigned not_really_extern : 1;
unsigned needs_final_overrider : 1;
unsigned initialized_in_class : 1;
-
unsigned pending_inline_p : 1;
+
unsigned global_ctor_p : 1;
unsigned global_dtor_p : 1;
unsigned assignment_operator_p : 1;
unsigned anticipated_p : 1;
- /* Three unused bits. */
+ /* Four unused bits. */
union {
/* In a FUNCTION_DECL, VAR_DECL, TYPE_DECL, or TEMPLATE_DECL, this
@@ -2838,7 +2837,7 @@ enum ptrmemfunc_vbit_where_t
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)->decl_flags.declared_inline)
+ (DECL_LANG_SPECIFIC (NODE)->decl_flags.base.declared_inline)
/* DECL_EXTERNAL must be set on a decl until the decl is actually emitted,
so that assemble_external will work properly. So we have this flag to