gcc/libstdc++-v3/include
Paolo Carlini bad333ffe3 re PR libstdc++/21172 (potential integer overflow error in STL heap functions)
2007-02-12  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/21172
	* include/bits/stl_heap.h (__adjust_heap(_RandomAccessIterator,
	_Distance, _Distance, _Tp), __adjust_heap(_RandomAccessIterator,
	_Distance, _Distance, _Tp, _Compare)): Avoid potential integer
	overflow.

	* include/bits/stl_heap.h (__is_heap(_RandomAccessIterator,
	_RandomAccessIterator), __is_heap(_RandomAccessIterator,
	_RandomAccessIterator, _StrictWeakOrdering): Mark inline.
	(make_heap(_RandomAccessIterator, _RandomAccessIterator,
	_Compare)): Do not mark inline.

	* include/bits/stl_heap.h (push_heap(_RandomAccessIterator,
	_RandomAccessIterator), sort_heap(_RandomAccessIterator,
	_RandomAccessIterator)): Uncomment __glibcxx_requires_heap.

From-SVN: r121875
2007-02-13 00:25:30 +00:00
..
backward c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
bits re PR libstdc++/21172 (potential integer overflow error in STL heap functions) 2007-02-13 00:25:30 +00:00
c Makefile.am (std_headers_rename): Remove. 2006-12-07 09:35:57 +00:00
c_compatibility All files: Update FSF address. 2005-08-17 02:28:44 +00:00
c_std Makefile.am (std_headers_rename): Remove. 2006-12-07 09:35:57 +00:00
debug throw_allocator.h: Consistent @file markup. 2006-11-29 20:59:22 +00:00
ext re PR libstdc++/30571 (Use of C++0x keywords in libstdc++-v3 headers) 2007-01-30 18:04:59 +00:00
precompiled extc++.h: Guard include files that assume iconv support is present from precompilation... 2007-02-06 17:59:09 +00:00
std locale_facets.tcc (num_get<>::do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&), [...]): -Wconversion and -Woverflow fixes. 2007-01-28 18:40:42 +00:00
tr1 random (gamma_distribution): Fix typo in formula. 2007-01-06 09:56:37 +00:00
Makefile.am enc_filebuf.h: Resurrect, update. 2007-01-29 18:22:37 +00:00
Makefile.in enc_filebuf.h: Resurrect, update. 2007-01-29 18:22:37 +00:00