mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 05:09:01 +08:00
stmt.c (estimate_case_costs): Use integer_minus_one_node.
* 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. From-SVN: r39325
This commit is contained in:
parent
4f92461a87
commit
f2d1f0ba55
@ -1,3 +1,12 @@
|
||||
2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* 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.
|
||||
|
||||
2001-01-28 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* Makefile.in (bootstrap2-lean): Fix typo.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* 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.
|
||||
|
||||
2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* Makefile.in: Remove all dependencies on defaults.h.
|
||||
|
@ -906,7 +906,6 @@ extern void write_spec_module PARAMS ((tree, tree));
|
||||
|
||||
/* in ch/lang.c */
|
||||
extern tree string_index_type_dummy;
|
||||
extern tree integer_minus_one_node;
|
||||
extern int flag_old_strings;
|
||||
extern void GNU_xref_begin PARAMS ((void));
|
||||
extern void GNU_xref_end PARAMS ((void));
|
||||
|
@ -299,9 +299,6 @@ tree default_function_type;
|
||||
|
||||
const char **boolean_code_name;
|
||||
|
||||
/* A node for the integer constant -1. */
|
||||
tree integer_minus_one_node;
|
||||
|
||||
/* Nodes for boolean constants TRUE and FALSE. */
|
||||
tree boolean_true_node, boolean_false_node;
|
||||
|
||||
@ -3388,9 +3385,6 @@ init_decl_processing ()
|
||||
pushdecl (build_decl (TYPE_DECL, ridpointers[(int) RID_DOUBLE],
|
||||
double_type_node));
|
||||
|
||||
integer_minus_one_node = build_int_2 (-1, -1);
|
||||
TREE_TYPE (integer_minus_one_node) = integer_type_node;
|
||||
|
||||
build_common_tree_nodes_2 (flag_short_double);
|
||||
|
||||
pushdecl (build_decl (TYPE_DECL,
|
||||
|
@ -1,3 +1,14 @@
|
||||
2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* 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.
|
||||
|
||||
2001-01-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
|
||||
|
@ -635,7 +635,6 @@ enum cp_tree_index
|
||||
CPTI_EMPTY_EXCEPT_SPEC,
|
||||
CPTI_NULL,
|
||||
CPTI_JCLASS,
|
||||
CPTI_MINUS_ONE,
|
||||
CPTI_TERMINATE,
|
||||
CPTI_ATEXIT,
|
||||
CPTI_DSO_HANDLE,
|
||||
@ -768,9 +767,6 @@ extern tree cp_global_trees[CPTI_MAX];
|
||||
/* If non-NULL, a POINTER_TYPE equivalent to (java::lang::Class*). */
|
||||
#define jclass_node cp_global_trees[CPTI_JCLASS]
|
||||
|
||||
/* A node for `(int) -1'. */
|
||||
#define minus_one_node cp_global_trees[CPTI_MINUS_ONE]
|
||||
|
||||
/* The declaration for `std::terminate'. */
|
||||
#define terminate_node cp_global_trees[CPTI_TERMINATE]
|
||||
|
||||
|
@ -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);
|
||||
|
@ -265,7 +265,7 @@ get_tinfo_decl_dynamic (exp)
|
||||
/* The RTTI information is always in the vtable, but it's at
|
||||
different indices depending on the ABI. */
|
||||
if (new_abi_rtti_p ())
|
||||
index = minus_one_node;
|
||||
index = integer_minus_one_node;
|
||||
else if (flag_vtable_thunks)
|
||||
index = integer_one_node;
|
||||
else
|
||||
|
@ -5764,7 +5764,7 @@ static int
|
||||
estimate_case_costs (node)
|
||||
case_node_ptr node;
|
||||
{
|
||||
tree min_ascii = build_int_2 (-1, -1);
|
||||
tree min_ascii = integer_minus_one_node;
|
||||
tree max_ascii = convert (TREE_TYPE (node->high), build_int_2 (127, 0));
|
||||
case_node_ptr n;
|
||||
int i;
|
||||
|
@ -4786,6 +4786,7 @@ build_common_tree_nodes_2 (short_double)
|
||||
/* Define these next since types below may used them. */
|
||||
integer_zero_node = build_int_2 (0, 0);
|
||||
integer_one_node = build_int_2 (1, 0);
|
||||
integer_minus_one_node = build_int_2 (-1, -1);
|
||||
|
||||
size_zero_node = size_int (0);
|
||||
size_one_node = size_int (1);
|
||||
|
@ -1715,6 +1715,7 @@ enum tree_index
|
||||
|
||||
TI_INTEGER_ZERO,
|
||||
TI_INTEGER_ONE,
|
||||
TI_INTEGER_MINUS_ONE,
|
||||
TI_NULL_POINTER,
|
||||
|
||||
TI_SIZE_ZERO,
|
||||
@ -1770,6 +1771,7 @@ extern tree global_trees[TI_MAX];
|
||||
|
||||
#define integer_zero_node global_trees[TI_INTEGER_ZERO]
|
||||
#define integer_one_node global_trees[TI_INTEGER_ONE]
|
||||
#define integer_minus_one_node global_trees[TI_INTEGER_MINUS_ONE]
|
||||
#define size_zero_node global_trees[TI_SIZE_ZERO]
|
||||
#define size_one_node global_trees[TI_SIZE_ONE]
|
||||
#define bitsize_zero_node global_trees[TI_BITSIZE_ZERO]
|
||||
|
Loading…
Reference in New Issue
Block a user