diff options
author | Martin Liska <mliska@suse.cz> | 2020-08-10 12:01:59 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-09-01 14:25:51 +0200 |
commit | 8aa04a189b677159c475f7fc3409ee56c710f047 (patch) | |
tree | 3409114ecf03cde1d09568098e37e815d146d7bb /gcc | |
parent | b61eaa25b0812a5996024e0ddb3535dde5a89c88 (diff) | |
download | gcc-8aa04a189b677159c475f7fc3409ee56c710f047.zip gcc-8aa04a189b677159c475f7fc3409ee56c710f047.tar.gz gcc-8aa04a189b677159c475f7fc3409ee56c710f047.tar.bz2 |
vec: default exect = false in grow functions.
gcc/ChangeLog:
* vec.h (vec_safe_grow): Change default of exact to false.
(vec_safe_grow_cleared): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/vec.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -724,7 +724,7 @@ vec_free (vec<T, A, vl_embed> *&v) template<typename T, typename A> inline void vec_safe_grow (vec<T, A, vl_embed> *&v, unsigned len, - bool exact CXX_MEM_STAT_INFO) + bool exact = false CXX_MEM_STAT_INFO) { unsigned oldlen = vec_safe_length (v); gcc_checking_assert (len >= oldlen); @@ -737,7 +737,7 @@ vec_safe_grow (vec<T, A, vl_embed> *&v, unsigned len, template<typename T, typename A> inline void vec_safe_grow_cleared (vec<T, A, vl_embed> *&v, unsigned len, - bool exact CXX_MEM_STAT_INFO) + bool exact = false CXX_MEM_STAT_INFO) { unsigned oldlen = vec_safe_length (v); vec_safe_grow (v, len, exact PASS_MEM_STAT); @@ -750,7 +750,7 @@ vec_safe_grow_cleared (vec<T, A, vl_embed> *&v, unsigned len, template<typename T> inline void vec_safe_grow_cleared (vec<T, va_heap, vl_ptr> *&v, - unsigned len, bool exact CXX_MEM_STAT_INFO) + unsigned len, bool exact = false CXX_MEM_STAT_INFO) { v->safe_grow_cleared (len, exact PASS_MEM_STAT); } @@ -1467,8 +1467,8 @@ public: T *safe_push (const T &CXX_MEM_STAT_INFO); T &pop (void); void truncate (unsigned); - void safe_grow (unsigned, bool CXX_MEM_STAT_INFO); - void safe_grow_cleared (unsigned, bool CXX_MEM_STAT_INFO); + void safe_grow (unsigned, bool = false CXX_MEM_STAT_INFO); + void safe_grow_cleared (unsigned, bool = false CXX_MEM_STAT_INFO); void quick_grow (unsigned); void quick_grow_cleared (unsigned); void quick_insert (unsigned, const T &); |