diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-29 02:46:30 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-29 02:46:30 +0000 |
commit | c87787ad2bd397153357e31d5289783d7a9ff149 (patch) | |
tree | e0576a67b40daa2d959bde31647eb1bc8cbaf698 /gcc/cp/init.c | |
parent | bf4daba7eee9741194165236d5d426522465c7ed (diff) | |
download | ppe42-gcc-c87787ad2bd397153357e31d5289783d7a9ff149.tar.gz ppe42-gcc-c87787ad2bd397153357e31d5289783d7a9ff149.zip |
* stmt.c (estimate_case_costs): Use integer_minus_one_node.
* tree.c (build_common_tree_nodes_2): Set integer_minus_one_node.
* tree.h (tree_index): Add new element TI_INTEGER_MINUS_ONE.
(integer_minus_one_node): Define.
ch:
* ch-tree.h (integer_minus_one_node): Moved to top level gcc
directory.
* decl.c (integer_minus_one_node): Likewise.
(init_decl_processing): Don't set integer_minus_one_node.
cp:
* cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
(minus_one_node): Moved to top level gcc directory. Renamed
to integer_minus_one_node.
* init.c (init_init_processing): Don't set minus_one_node.
(build_vec_init): Use integer_minus_one_node.
* rtti.c (get_tinfo_decl_dynamic): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 3105ff7c9c0..19173895239 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -65,8 +65,6 @@ void init_init_processing () { tree fields[1]; - minus_one_node = build_int_2 (-1, -1); - /* Define the structure that holds header information for arrays allocated via operator new. */ BI_header_type = make_aggr_type (RECORD_TYPE); @@ -2989,7 +2987,7 @@ build_vec_init (base, init, from_array) if_stmt = begin_if_stmt (); finish_if_stmt_cond (build (NE_EXPR, boolean_type_node, - iterator, minus_one_node), + iterator, integer_minus_one_node), if_stmt); /* Otherwise, loop through the elements. */ @@ -3063,7 +3061,7 @@ build_vec_init (base, init, from_array) finish_do_body (do_stmt); finish_do_stmt (build (NE_EXPR, boolean_type_node, build_unary_op (PREDECREMENT_EXPR, iterator, 0), - minus_one_node), + integer_minus_one_node), do_stmt); finish_then_clause (if_stmt); |