From: Martin Liska Date: Mon, 10 Aug 2020 10:01:59 +0000 (+0200) Subject: vec: default exect = false in grow functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aa04a189b677159c475f7fc3409ee56c710f047;p=gcc.git 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. --- diff --git a/gcc/vec.h b/gcc/vec.h index b0d2e3164e4..48e756ebdf3 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -724,7 +724,7 @@ vec_free (vec *&v) template inline void vec_safe_grow (vec *&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 *&v, unsigned len, template inline void vec_safe_grow_cleared (vec *&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 *&v, unsigned len, template inline void vec_safe_grow_cleared (vec *&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 &);