summaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-09-23 18:59:14 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-09-23 18:59:14 +0200
commitb862552dff04fbd4c7debf07a7c82d361869a552 (patch)
tree52d11a0c22bc37fe289d54f0c032fa2d5e8fac8c /gcc/vec.h
parent7de76362e43ddba204611a23b2292d0d6fadd1ab (diff)
vec.h (vNULL): Extend comment to say = vNULL initialization isn't needed for static vars.
* vec.h (vNULL): Extend comment to say = vNULL initialization isn't needed for static vars. From-SVN: r240445
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 959871bcc1e..14fb2a673c1 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -410,7 +410,9 @@ struct GTY((user)) vec
/* Type to provide NULL values for vec<T, A, L>. This is used to
provide nil initializers for vec instances. Since vec must be
a POD, we cannot have proper ctor/dtor for it. To initialize
- a vec instance, you can assign it the value vNULL. */
+ a vec instance, you can assign it the value vNULL. This isn't
+ needed for file-scope and function-local static vectors, which
+ are zero-initialized by default. */
struct vnull
{
template <typename T, typename A, typename L>