gcc/gcc/cp
Ian Lance Taylor efb7e1e026 vec.h (VEC_reserve_exact): Define.
./:	* vec.h (VEC_reserve_exact): Define.
	(vec_gc_p_reserve_exact): Declare.
	(vec_gc_o_reserve_exact): Declare.
	(vec_heap_p_reserve_exact): Declare.
	(vec_heap_o_reserve_exact): Declare.
	(VEC_OP (T,A,reserve_exact)): New static inline function, three
	versions.
	(VEC_OP (T,A,reserve)) [all versions]: Remove handling of
	negative parameter.
	(VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
	(VEC_OP (T,A,copy)) [all versions]: Likewise.
	(VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
	* vec.c (calculate_allocation): Add exact parameter.  Change all
	callers.
	(vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
	(vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
	(vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
	(vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
	(vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
	(vec_heap_p_reserve_exact): New function.
	(vec_heap_o_reserve_exact): New function.
cp/:
	* class.c (add_method): Call VEC_reserve_exact rather than passing
	a negative size to VEC_reserve.

From-SVN: r120861
2007-01-17 17:42:10 +00:00
..
call.c
cfns.gperf
cfns.h
ChangeLog vec.h (VEC_reserve_exact): Define. 2007-01-17 17:42:10 +00:00
ChangeLog-1993
ChangeLog-1994
ChangeLog-1995
ChangeLog-1996
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog.tree-ssa
class.c vec.h (VEC_reserve_exact): Define. 2007-01-17 17:42:10 +00:00
config-lang.in
cp-gimplify.c
cp-lang.c
cp-objcp-common.c
cp-objcp-common.h
cp-tree.def
cp-tree.h
cvt.c
cxx-pretty-print.c
cxx-pretty-print.h
decl2.c
decl.c
decl.h
dump.c
error.c
except.c
expr.c
friend.c
g++spec.c
init.c
lang-specs.h
lex.c
Make-lang.in
mangle.c
method.c
name-lookup.c
name-lookup.h
NEWS
operators.def
optimize.c
parser.c Remove accidentally checked in hunk. 2007-01-11 15:42:27 +00:00
pt.c
ptree.c
repo.c
rtti.c
search.c
semantics.c
tree.c re PR c++/29573 (ICE after parse error in template argument) 2007-01-11 19:46:03 +00:00
typeck2.c
typeck.c