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 streambuf.tcc (__copy_streambufs): Provide a generic version of the function... 2004-11-15 23:33:05 +00:00
Makefile.in acinclude.m4: Remove testsuite_wchar_t and testsuite_thread. 2005-05-05 16:12:28 +00:00
allocator-inst.cc re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
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 Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
concept-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
ctype.cc re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
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 c++config (_GLIBCXX_STD): New. 2004-04-16 19:04:07 +00:00
ext-inst.cc Fixups for EDG front end. 2004-04-07 03:33:36 +00:00
fstream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
functexcept.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
globals_io.cc globals_io.cc: Change to __gnu_internal namespace. 2004-01-28 21:20:42 +00:00
globals_locale.cc locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. 2004-02-21 09:26:35 +00:00
io-inst.cc [multiple changes] 2003-10-09 16:53:54 +00:00
ios.cc re PR libstdc++/17922 (Spurious warnings about std::ios_base::seekdir) 2004-11-02 19:00:19 +00:00
ios_failure.cc [multiple changes] 2003-10-09 16:53:54 +00:00
ios_init.cc re PR libstdc++/16959 (Segmentation fault in ios_base::sync_with_stdio) 2004-08-11 09:31:13 +00:00
ios_locale.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00
istream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
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 Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
list.cc c++config (_GLIBCXX_STD): New. 2004-04-16 19:04:07 +00:00
locale-inst.cc locale_facets.h (money_get<>::_M_extract): Change signature: now takes a plain string&. 2004-02-27 10:12:01 +00:00
locale-misc-inst.cc locale-misc-inst.cc (__convert_from_v(long), [...]): Remove, unused. 2004-01-13 23:25:55 +00:00
locale.cc re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
locale_facets.cc locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. 2004-02-21 09:26:35 +00:00
locale_init.cc PR libstdc++/12658 (continued) 2004-07-29 15:54:50 +00:00
localename.cc localename.cc (locale::locale(const char*)): Minor tweaks: rename a variable, move an assignment. 2004-09-24 15:26:35 +00:00
misc-inst.cc re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) 2004-03-07 01:32:43 +00:00
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 Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
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 Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
stdexcept.cc * config/locale/gnu/ctype_members.cc 2002-12-27 23:03:03 +00:00
streambuf-inst.cc std_streambuf.h (__copy_streambufs): Remove the first, unused, basic_ios<> parameter. 2003-11-27 13:13:19 +00:00
streambuf.cc streambuf.tcc (__copy_streambufs): Provide a generic version of the function... 2004-11-15 23:33:05 +00:00
string-inst.cc [multiple changes] 2004-06-12 08:10:24 +00:00
strstream.cc re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail) 2003-10-12 20:03:18 +00:00
tree.cc [multiple changes] 2004-01-07 20:55:06 +00:00
valarray-inst.cc indirect_array.h: Trivial formatting fixes. 2004-08-16 14:50:31 +00:00
wlocale-inst.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00
wstring-inst.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00