diff options
author | Jason Merrill <jason@redhat.com> | 2003-10-09 01:44:57 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-10-09 01:44:57 -0400 |
commit | 1456deafd7978b7201704ac822231c9ac4f260fe (patch) | |
tree | 4afd5b15eb7fe41b0e949cd004d55cb26834adbf /gcc/cp/tree.c | |
parent | 08cffcce0f0569711be8949bbaf579a54264b9ce (diff) | |
download | gcc-1456deafd7978b7201704ac822231c9ac4f260fe.zip gcc-1456deafd7978b7201704ac822231c9ac4f260fe.tar.gz gcc-1456deafd7978b7201704ac822231c9ac4f260fe.tar.bz2 |
stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.
* stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
here.
(expand_asm_operands): Not here.
(parse_input_constraint): No longer static.
* tree.h: Declare it.
* coverage.c (build_ctr_info_value): Use build_decl to make a
VAR_DECL.
(create_coverage): Likewise.
java/
* parse.y (patch_assignment): Use make_node to create a BLOCK.
* parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a
POINTER_TYPE.
cp/
* tree.c (build_cplus_new): Use build_decl to create a VAR_DECL.
(build_target_expr_with_type): Likewise.
* pt.c (instantiate_class_template): Sanity check that our
enclosing class has been instantiated.
From-SVN: r72255
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 0c729d6..109f7e5 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -269,7 +269,7 @@ build_cplus_new (tree type, tree init) && TREE_CODE (TREE_OPERAND (fn, 0)) == FUNCTION_DECL && DECL_CONSTRUCTOR_P (TREE_OPERAND (fn, 0))); - slot = build (VAR_DECL, type); + slot = build_decl (VAR_DECL, NULL_TREE, type); DECL_ARTIFICIAL (slot) = 1; DECL_CONTEXT (slot) = current_function_decl; layout_decl (slot, 0); @@ -311,7 +311,7 @@ build_target_expr_with_type (tree init, tree type) if (TREE_CODE (init) == TARGET_EXPR) return init; - slot = build (VAR_DECL, type); + slot = build_decl (VAR_DECL, NULL_TREE, type); DECL_ARTIFICIAL (slot) = 1; DECL_CONTEXT (slot) = current_function_decl; layout_decl (slot, 0); |