summaryrefslogtreecommitdiffstats
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-09 05:44:57 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-09 05:44:57 +0000
commitd7e389944a2032e07b4f8c321b04b4f8a354b69a (patch)
tree4afd5b15eb7fe41b0e949cd004d55cb26834adbf /gcc/coverage.c
parentad383c6cf41bbd6d0bf966fe32f4ab5ddd31e10a (diff)
downloadppe42-gcc-d7e389944a2032e07b4f8c321b04b4f8a354b69a.tar.gz
ppe42-gcc-d7e389944a2032e07b4f8c321b04b4f8a354b69a.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index e6f4129dd79..b02c97c15d6 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -637,7 +637,7 @@ build_ctr_info_value (unsigned int counter, tree type)
array_type = build_array_type (TREE_TYPE (TREE_TYPE (fields)),
array_type);
- array = build (VAR_DECL, array_type, NULL_TREE, NULL_TREE);
+ array = build_decl (VAR_DECL, NULL_TREE, array_type);
TREE_STATIC (array) = 1;
DECL_NAME (array) = get_identifier (XSTR (ctr_labels[counter], 0));
assemble_variable (array, 0, 0, 0);
@@ -824,8 +824,7 @@ create_coverage (void)
gcov_info_value = build_gcov_info ();
- gcov_info = build (VAR_DECL, TREE_TYPE (gcov_info_value),
- NULL_TREE, NULL_TREE);
+ gcov_info = build_decl (VAR_DECL, NULL_TREE, TREE_TYPE (gcov_info_value));
DECL_INITIAL (gcov_info) = gcov_info_value;
TREE_STATIC (gcov_info) = 1;
OpenPOWER on IntegriCloud