sel-sched-ir.c (sel_global_bb_info, [...]): Remove unnecessary = vNULL initialization...
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 Sep 2016 16:58:40 +0000 (18:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 Sep 2016 16:58:40 +0000 (18:58 +0200)
* 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

gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/haifa-sched.c
gcc/passes.c
gcc/sel-sched-ir.c
gcc/sel-sched.c
gcc/tree-chkp-opt.c

index 919b9d8693bb4731e47d9becc2674dfea485964e..e32b062ad5aab6009586563f96608410424c8f1c 100644 (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.
 
index 4c2fc5dda655e1a5dce4f044c8e7f85ed13280e6..283cfdacc2f33064887d2205f6e792324363f4c3 100644 (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.
index 58424a9e8e5b9c7f909e6e3dcbd1c14ee9f319f9..5f610e9ad7b5dee2ce4d92a00c97dddae43e7620 100644 (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,
index 9f5eba8500edd8cbe12e3f3c5a8fd9ace4e269fb..3900bba62503d38e12a47f5a388dce7cec28f696 100644 (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.
 
index b7d49f19e7a3e8ee0841aa9177761e2e64bee5a3..c5dde151c2e5f16f0b9822caf99957d975738e27 100644 (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;
 
index c58b0ad399f0bb3732a4c7e57f7753e62d0e2e9e..0ad080f253cbadfb174c0bf2a6d16dbb5a5baa18 100644 (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);
 
index 07ebf8b4a2fe1ca1f67b008be37df8645a3215ac..a210772eab8a8b5144407783584c86155347d112 100644 (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-
index 83f813aa57140afcc666c4dd217a215eec4b6803..210b1e4edfb359a161cda4826704005ae9ab5a24 100644 (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)
 \f
 
 /* 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
index 25a100ee34f6ceaceda2814ae281cadf8b29e688..1ed0d4bdca673126528bf97a463efc5f54b9fd1b 100644 (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.  */
index 99152450e1ee0af5f274b1e99e3c5dd1756f1ded..6cf086c754c78623aaca4927eaf3960dca0965c3 100644 (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