gcc/libstdc++-v3/src
Paolo Carlini 66143232bc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep)
2005-05-18  Paolo Carlini  <pcarlini@suse.de>
	    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/19495
	* include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
	size_type instead of char and rename to _Raw_alloc.
	* include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
	Use the above.
	* src/bitmap_allocator.cc: Add instantiation for size_type.
	* src/mt_allocator.cc: Likewise.
	* src/pool_allocator.cc: Likewise.
	* include/ext/array_allocator.h: Tweak slightly, avoid assuming
	the existence of an _Array::begin() and size() members.
	* testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
	of size_type, instead of char, thus avoiding problems with
	rebinds, not treated correctly by array_allocator.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r99933
2005-05-18 22:11:24 +00:00
..
Makefile.am
Makefile.in acinclude.m4: Remove testsuite_wchar_t and testsuite_thread. 2005-05-05 16:12:28 +00:00
allocator-inst.cc
bitmap_allocator.cc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
codecvt.cc acinclude.m4: Remove CCODECVT_H. 2005-01-07 19:34:46 +00:00
complex_io.cc
concept-inst.cc
ctype.cc
debug.cc acinclude.m4: Adjust so that _GLIBCXX_USE_C99 implies using _GLIBCXX_USE_C99_COMPLEX... 2005-03-24 05:45:45 +00:00
debug_list.cc
ext-inst.cc
fstream-inst.cc
functexcept.cc
globals_io.cc
globals_locale.cc
io-inst.cc
ios.cc
ios_failure.cc
ios_init.cc
ios_locale.cc
istream-inst.cc
istream.cc istream.cc (basic_istream<char>::ignore(streamsize), [...]): In case more than numeric_limits<streamsize>::max() chars are skipped... 2005-01-11 23:35:43 +00:00
limits.cc
list.cc
locale-inst.cc
locale-misc-inst.cc
locale.cc
locale_facets.cc
locale_init.cc
localename.cc
misc-inst.cc
mt_allocator.cc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
ostream-inst.cc
pool_allocator.cc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
sstream-inst.cc
stdexcept.cc
streambuf-inst.cc
streambuf.cc
string-inst.cc
strstream.cc
tree.cc
valarray-inst.cc
wlocale-inst.cc
wstring-inst.cc