sel-sched-ir.c (sel_global_bb_info, [...]): Remove unnecessary = vNULL initialization of file scope vec.

* sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
	loop_nests, s_i_d, last_added_blocks): Remove unnecessary
	= vNULL initialization of file scope vec.
	* passes.c (pass_tab, enabled_pass_uid_range_tab,
	disabled_pass_uid_range_tab): Likewise.
	* haifa-sched.c (sched_luids, h_i_d): Likewise.
	* tree-chkp-opt.c (check_infos): Likewise.
	* sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
c/
	* c-parser.c (incomplete_record_decls): Remove unnecessary
	= vNULL initialization of file scope vec.
cp/
	* constexpr.c (call_stack): Remove unnecessary
	= vNULL initialization of file scope vec.

From-SVN: r240444
This commit is contained in:
Jakub Jelinek 2016-09-23 18:58:40 +02:00 committed by Jakub Jelinek
parent 3d1ba08f49
commit 7de76362e4
10 changed files with 32 additions and 20 deletions

View File

@ -1,5 +1,14 @@
2016-09-23 Jakub Jelinek <jakub@redhat.com>
* sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
loop_nests, s_i_d, last_added_blocks): Remove unnecessary
= vNULL initialization of file scope vec.
* passes.c (pass_tab, enabled_pass_uid_range_tab,
disabled_pass_uid_range_tab): Likewise.
* haifa-sched.c (sched_luids, h_i_d): Likewise.
* tree-chkp-opt.c (check_infos): Likewise.
* sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
* vec.h (vnull::operator vec): Add constexpr keyword for
C++11 and later.

View File

@ -1,3 +1,8 @@
2016-09-23 Jakub Jelinek <jakub@redhat.com>
* c-parser.c (incomplete_record_decls): Remove unnecessary
= vNULL initialization of file scope vec.
2016-09-16 Marek Polacek <polacek@redhat.com>
* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.

View File

@ -67,7 +67,7 @@ along with GCC; see the file COPYING3. If not see
In c_parser_translation_unit(), we iterate over incomplete_record_decls
and report error if any of the decls are still incomplete. */
vec<tree> incomplete_record_decls = vNULL;
vec<tree> incomplete_record_decls;
void
set_c_expr_source_range (c_expr *expr,

View File

@ -1,5 +1,8 @@
2016-09-23 Jakub Jelinek <jakub@redhat.com>
* constexpr.c (call_stack): Remove unnecessary
= vNULL initialization of file scope vec.
* name-lookup.c (store_bindings, store_class_bindings): Don't
initialize static local bindings_need_stored to vNULL.

View File

@ -1253,7 +1253,7 @@ cxx_bind_parameters_in_call (const constexpr_ctx *ctx, tree t,
These do not need to be marked for PCH or GC. */
/* FIXME remember and print actual constant arguments. */
static vec<tree> call_stack = vNULL;
static vec<tree> call_stack;
static int call_stack_tick;
static int last_cx_error_tick;

View File

@ -401,13 +401,13 @@ const struct common_sched_info_def haifa_common_sched_info =
};
/* Mapping from instruction UID to its Logical UID. */
vec<int> sched_luids = vNULL;
vec<int> sched_luids;
/* Next LUID to assign to an instruction. */
int sched_max_luid = 1;
/* Haifa Instruction Data. */
vec<haifa_insn_data_def> h_i_d = vNULL;
vec<haifa_insn_data_def> h_i_d;
void (* sched_init_only_bb) (basic_block, basic_block);

View File

@ -862,7 +862,7 @@ pass_manager::register_pass_name (opt_pass *pass, const char *name)
/* Map from pass id to canonicalized pass name. */
typedef const char *char_ptr;
static vec<char_ptr> pass_tab = vNULL;
static vec<char_ptr> pass_tab;
/* Callback function for traversing NAME_TO_PASS_MAP. */
@ -982,10 +982,8 @@ struct uid_range
typedef struct uid_range *uid_range_p;
static vec<uid_range_p>
enabled_pass_uid_range_tab = vNULL;
static vec<uid_range_p>
disabled_pass_uid_range_tab = vNULL;
static vec<uid_range_p> enabled_pass_uid_range_tab;
static vec<uid_range_p> disabled_pass_uid_range_tab;
/* Parse option string for -fdisable- and -fenable-

View File

@ -45,12 +45,10 @@ along with GCC; see the file COPYING3. If not see
#include "sel-sched-dump.h"
/* A vector holding bb info for whole scheduling pass. */
vec<sel_global_bb_info_def>
sel_global_bb_info = vNULL;
vec<sel_global_bb_info_def> sel_global_bb_info;
/* A vector holding bb info. */
vec<sel_region_bb_info_def>
sel_region_bb_info = vNULL;
vec<sel_region_bb_info_def> sel_region_bb_info;
/* A pool for allocating all lists. */
object_allocator<_list_node> sched_lists_pool ("sel-sched-lists");
@ -66,7 +64,7 @@ struct loop *current_loop_nest;
/* LOOP_NESTS is a vector containing the corresponding loop nest for
each region. */
static vec<loop_p> loop_nests = vNULL;
static vec<loop_p> loop_nests;
/* Saves blocks already in loop regions, indexed by bb->index. */
static sbitmap bbs_in_loop_rgns = NULL;
@ -4163,7 +4161,7 @@ finish_region_bb_info (void)
/* Data for each insn in current region. */
vec<sel_insn_data_def> s_i_d = vNULL;
vec<sel_insn_data_def> s_i_d;
/* Extend data structures for insns from current region. */
static void
@ -4499,8 +4497,7 @@ get_av_level (insn_t insn)
/* The basic block that already has been processed by the sched_data_update (),
but hasn't been in sel_add_bb () yet. */
static vec<basic_block>
last_added_blocks = vNULL;
static vec<basic_block> last_added_blocks;
/* A pool for allocating successor infos. */
static struct

View File

@ -494,7 +494,7 @@ static int max_ws;
static int num_insns_scheduled;
/* A vector of expressions is used to be able to sort them. */
static vec<expr_t> vec_av_set = vNULL;
static vec<expr_t> vec_av_set;
/* A vector of vinsns is used to hold temporary lists of vinsns. */
typedef vec<vinsn_t> vinsn_vec_t;
@ -512,7 +512,7 @@ static vinsn_vec_t vec_target_unavailable_vinsns = vinsn_vec_t ();
/* Vector to store temporary nops inserted in move_op to prevent removal
of empty bbs. */
static vec<insn_t> vec_temp_moveop_nops = vNULL;
static vec<insn_t> vec_temp_moveop_nops;
/* These bitmaps record original instructions scheduled on the current
iteration and bookkeeping copies created by them. */

View File

@ -84,7 +84,7 @@ static void chkp_collect_value (tree ssa_name, address_t &res);
#define chkp_checku_fndecl \
(targetm.builtin_chkp_function (BUILT_IN_CHKP_BNDCU))
static vec<struct bb_checks, va_heap, vl_ptr> check_infos = vNULL;
static vec<struct bb_checks, va_heap, vl_ptr> check_infos;
/* Comparator for pol_item structures I1 and I2 to be used
to find items with equal var. Also used for polynomial