diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-09-23 11:43:09 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-09-23 11:43:09 +0200 |
commit | 199d1d488f5de5c940f9010a9fdfd1e4d1f24fe1 (patch) | |
tree | bd250b365b5dc30fe887a842bf71518aa456145f /gcc/cp | |
parent | 4ffc8099a7587030c1331e53dd9feba27f21b633 (diff) | |
download | gcc-199d1d488f5de5c940f9010a9fdfd1e4d1f24fe1.zip gcc-199d1d488f5de5c940f9010a9fdfd1e4d1f24fe1.tar.gz gcc-199d1d488f5de5c940f9010a9fdfd1e4d1f24fe1.tar.bz2 |
ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
* 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.
cp/
* name-lookup.c (store_bindings, store_class_bindings): Don't
initialize static local bindings_need_stored to vNULL.
From-SVN: r240408
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ae59343..9f5eba8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 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 (...)). diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 952d8b7..ce16d57 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -6197,7 +6197,7 @@ store_binding (tree id, vec<cxx_saved_binding, va_gc> **old_bindings) 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; @@ -6233,7 +6233,7 @@ static void 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; |