Commit c727aa5e by Nathan Sidwell Committed by Nathan Sidwell

cp-tree.h (SET_DECL_ARTIFICIAL): Remove.

	* cp-tree.h (SET_DECL_ARTIFICIAL): Remove.
	* decl.c (create_implicit_typedef): Adjust.
	* decl2.c (build_artificial_parm): Adjust.
	* method.c (implicitly_declare_fn): Adjust.
	* pt.c (push_inline_template_parms_recursive): Adjust.
	(process_template_parm): Adjust.
	(overloaded_template_name): Adjust.
	* semantics.c (finish_template_template_parm): Adjust.

From-SVN: r34780
parent 0900331b
2000-06-29 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (SET_DECL_ARTIFICIAL): Remove.
* decl.c (create_implicit_typedef): Adjust.
* decl2.c (build_artificial_parm): Adjust.
* method.c (implicitly_declare_fn): Adjust.
* pt.c (push_inline_template_parms_recursive): Adjust.
(process_template_parm): Adjust.
(overloaded_template_name): Adjust.
* semantics.c (finish_template_template_parm): Adjust.
2000-06-28 Mark Mitchell <mark@codesourcery.com> 2000-06-28 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (CLEAR_BINFO_NEW_VTABLE_MARKED): Remove. * cp-tree.h (CLEAR_BINFO_NEW_VTABLE_MARKED): Remove.
......
...@@ -2569,9 +2569,6 @@ extern int flag_new_for_scope; ...@@ -2569,9 +2569,6 @@ extern int flag_new_for_scope;
#define DECL_ANTICIPATED(NODE) \ #define DECL_ANTICIPATED(NODE) \
(DECL_LANG_SPECIFIC (FUNCTION_DECL_CHECK (NODE))->decl_flags.anticipated_p) (DECL_LANG_SPECIFIC (FUNCTION_DECL_CHECK (NODE))->decl_flags.anticipated_p)
/* This _DECL represents a compiler-generated entity. */
#define SET_DECL_ARTIFICIAL(NODE) (DECL_ARTIFICIAL (NODE) = 1)
/* Record whether a typedef for type `int' was actually `signed int'. */ /* Record whether a typedef for type `int' was actually `signed int'. */
#define C_TYPEDEF_EXPLICITLY_SIGNED(exp) DECL_LANG_FLAG_1 ((exp)) #define C_TYPEDEF_EXPLICITLY_SIGNED(exp) DECL_LANG_FLAG_1 ((exp))
......
...@@ -2805,7 +2805,7 @@ create_implicit_typedef (name, type) ...@@ -2805,7 +2805,7 @@ create_implicit_typedef (name, type)
tree decl; tree decl;
decl = build_decl (TYPE_DECL, name, type); decl = build_decl (TYPE_DECL, name, type);
SET_DECL_ARTIFICIAL (decl); DECL_ARTIFICIAL (decl) = 1;
/* There are other implicit type declarations, like the one *within* /* There are other implicit type declarations, like the one *within*
a class that allows you to write `S::S'. We must distinguish a class that allows you to write `S::S'. We must distinguish
amongst these. */ amongst these. */
......
...@@ -959,7 +959,7 @@ build_artificial_parm (name, type) ...@@ -959,7 +959,7 @@ build_artificial_parm (name, type)
tree parm; tree parm;
parm = build_decl (PARM_DECL, name, type); parm = build_decl (PARM_DECL, name, type);
SET_DECL_ARTIFICIAL (parm); DECL_ARTIFICIAL (parm) = 1;
DECL_ARG_TYPE (parm) = type; DECL_ARG_TYPE (parm) = type;
return parm; return parm;
} }
......
...@@ -2644,8 +2644,8 @@ implicitly_declare_fn (kind, type, const_p) ...@@ -2644,8 +2644,8 @@ implicitly_declare_fn (kind, type, const_p)
my_friendly_assert (TREE_CODE (fn) == FUNCTION_DECL, 20000408); my_friendly_assert (TREE_CODE (fn) == FUNCTION_DECL, 20000408);
if (kind != sfk_constructor && kind != sfk_destructor) if (kind != sfk_constructor && kind != sfk_destructor)
SET_DECL_ARTIFICIAL (TREE_CHAIN (DECL_ARGUMENTS (fn))); DECL_ARTIFICIAL (TREE_CHAIN (DECL_ARGUMENTS (fn))) = 1;
SET_DECL_ARTIFICIAL (fn); DECL_ARTIFICIAL (fn) = 1;
DECL_NOT_REALLY_EXTERN (fn) = 1; DECL_NOT_REALLY_EXTERN (fn) = 1;
DECL_THIS_INLINE (fn) = 1; DECL_THIS_INLINE (fn) = 1;
DECL_INLINE (fn) = 1; DECL_INLINE (fn) = 1;
......
...@@ -347,7 +347,7 @@ push_inline_template_parms_recursive (parmlist, levels) ...@@ -347,7 +347,7 @@ push_inline_template_parms_recursive (parmlist, levels)
available. */ available. */
tree decl = build_decl (CONST_DECL, DECL_NAME (parm), tree decl = build_decl (CONST_DECL, DECL_NAME (parm),
TREE_TYPE (parm)); TREE_TYPE (parm));
SET_DECL_ARTIFICIAL (decl); DECL_ARTIFICIAL (decl) = 1;
DECL_INITIAL (decl) = DECL_INITIAL (parm); DECL_INITIAL (decl) = DECL_INITIAL (parm);
SET_DECL_TEMPLATE_PARM_P (decl); SET_DECL_TEMPLATE_PARM_P (decl);
pushdecl (decl); pushdecl (decl);
...@@ -1871,7 +1871,7 @@ process_template_parm (list, next) ...@@ -1871,7 +1871,7 @@ process_template_parm (list, next)
processing_template_decl, processing_template_decl,
decl, TREE_TYPE (parm)); decl, TREE_TYPE (parm));
} }
SET_DECL_ARTIFICIAL (decl); DECL_ARTIFICIAL (decl) = 1;
SET_DECL_TEMPLATE_PARM_P (decl); SET_DECL_TEMPLATE_PARM_P (decl);
pushdecl (decl); pushdecl (decl);
parm = build_tree_list (defval, parm); parm = build_tree_list (defval, parm);
...@@ -7545,7 +7545,7 @@ overload_template_name (type) ...@@ -7545,7 +7545,7 @@ overload_template_name (type)
return; return;
decl = build_decl (TYPE_DECL, id, type); decl = build_decl (TYPE_DECL, id, type);
SET_DECL_ARTIFICIAL (decl); DECL_ARTIFICIAL (decl) = 1;
pushdecl_class_level (decl); pushdecl_class_level (decl);
} }
......
...@@ -2232,7 +2232,7 @@ finish_template_template_parm (aggr, identifier) ...@@ -2232,7 +2232,7 @@ finish_template_template_parm (aggr, identifier)
tree tmpl = build_lang_decl (TEMPLATE_DECL, identifier, NULL_TREE); tree tmpl = build_lang_decl (TEMPLATE_DECL, identifier, NULL_TREE);
DECL_TEMPLATE_PARMS (tmpl) = current_template_parms; DECL_TEMPLATE_PARMS (tmpl) = current_template_parms;
DECL_TEMPLATE_RESULT (tmpl) = decl; DECL_TEMPLATE_RESULT (tmpl) = decl;
SET_DECL_ARTIFICIAL (decl); DECL_ARTIFICIAL (decl) = 1;
end_template_decl (); end_template_decl ();
return finish_template_type_parm (aggr, tmpl); return finish_template_type_parm (aggr, tmpl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment