+2016-09-23 Jakub Jelinek <jakub@redhat.com>
+
+ * ipa-cp.c (ipcp_store_vr_results): Avoid static local
+ var zero.
+ * sreal.h (sreal::min, sreal::max): Avoid static local vars,
+ construct values without normalization.
+ * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
+ static local lhs_ops to vNULL.
+
2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
Jiong Wang <jiong.wang@arm.com>
2016-09-23 Jakub Jelinek <jakub@redhat.com>
+ * name-lookup.c (store_bindings, store_class_bindings): Don't
+ initialize static local bindings_need_stored to vNULL.
+
* typeck2.c (process_init_constructor_record): Use
CONSTRUCTOR_NELTS (...) instead of
vec_safe_length (CONSTRUCTOR_ELTS (...)).
static void
store_bindings (tree names, vec<cxx_saved_binding, va_gc> **old_bindings)
{
- static vec<tree> bindings_need_stored = vNULL;
+ static vec<tree> bindings_need_stored;
tree t, id;
size_t i;
store_class_bindings (vec<cp_class_binding, va_gc> *names,
vec<cxx_saved_binding, va_gc> **old_bindings)
{
- static vec<tree> bindings_need_stored = vNULL;
+ static vec<tree> bindings_need_stored;
size_t i;
cp_class_binding *cb;
}
else
{
- static wide_int zero = integer_zero_node;
vr.known = false;
vr.type = VR_VARYING;
- vr.min = zero;
- vr.max = zero;
+ vr.min = vr.max = wi::zero (INT_TYPE_SIZE);
}
ts->m_vr->quick_push (vr);
}
/* Global minimum sreal can hold. */
inline static sreal min ()
{
- static sreal min = sreal (-SREAL_MAX_SIG, SREAL_MAX_EXP);
+ sreal min;
+ /* This never needs normalization. */
+ min.m_sig = -SREAL_MAX_SIG;
+ min.m_exp = SREAL_MAX_EXP;
return min;
}
/* Global minimum sreal can hold. */
inline static sreal max ()
{
- static sreal max = sreal (SREAL_MAX_SIG, SREAL_MAX_EXP);
+ sreal max;
+ /* This never needs normalization. */
+ max.m_sig = SREAL_MAX_SIG;
+ max.m_exp = SREAL_MAX_EXP;
return max;
}
gimple *def_stmt = SSA_NAME_DEF_STMT (vuse);
tree base = ao_ref_base (ref);
HOST_WIDE_INT offset, maxsize;
- static vec<vn_reference_op_s>
- lhs_ops = vNULL;
+ static vec<vn_reference_op_s> lhs_ops;
ao_ref lhs_ref;
bool lhs_ref_ok = false;