Go to file
Nathan C. Myers ca566e4c07 Avoid multi-processor bus contention on increment/decrement-and- test of the reference count in the empty-string object...
2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>

	Avoid multi-processor bus contention on increment/decrement-and-
	test of the reference count in the empty-string object, by comparing
        addresses first, and never touching the reference count of the empty-
        string object.
	* include/bits/basic_string.h:
	(_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
	members.
	(_Rep::_S_empty_rep()): New accessor.
	(_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
	a base class _Rep_base.
	(_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
	(basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
	since no longer must increment its refcount.
	* include/bits/basic_string.tcc:
	(_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
        return immediately.  The former might be unnecessary.  The latter
        prevents begin() and end() from cloning it unnecessarily.
	(_S_construct(_InIterator, _InIterator, const _Alloc&,
	input_iterator_tag), _S_construct(_InIterator, _InIterator,
	const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
	const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
	(_M_mutate): Check for the empty string and treat it as shared.
        This is necessary here because _M_mutate is sometimes called with
        all-zero arguments; in all other uses of _M_is_shared, the test comes
        out right anyhow.

From-SVN: r67912
2003-06-13 20:59:42 +00:00
boehm-gc
config
contrib * paranoia.cc: Fix spelling error. 2003-06-13 13:57:27 +00:00
fastjar
gcc c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro. 2003-06-13 19:27:29 +00:00
include
INSTALL
libf2c install.tex: Document profiledbootstrap. 2003-06-05 16:36:12 +00:00
libffi sysv.S: Avoid gas-only .uleb128/.sleb128 directives. 2003-06-13 11:59:53 +00:00
libiberty re PR bootstrap/10974 (Bootstrap failure) 2003-06-09 05:20:02 +00:00
libjava prims.cc (catch_segv): Create exception in handler. 2003-06-13 12:20:45 +00:00
libobjc hash.c, [...]: Replace "GNU CC" with "GCC". 2003-05-23 20:25:39 +00:00
libstdc++-v3 Avoid multi-processor bus contention on increment/decrement-and- test of the reference count in the empty-string object... 2003-06-13 20:59:42 +00:00
maintainer-scripts gcc_release (build_diff): Properly use ${TAR} instead of hard-coded tar. 2003-06-10 08:49:59 +00:00
zlib
.cvsignore
ChangeLog config.guess: Update to 2003-06-06 version. 2003-06-12 07:38:22 -07:00
config-ml.in
config.guess config.guess: Update to 2003-06-06 version. 2003-06-12 07:38:22 -07:00
config.if
config.sub config.guess: Update to 2003-06-06 version. 2003-06-12 07:38:22 -07:00
configure configure.in: Don't pass --with-stabs for mips*-sgi-irix6*o32. 2003-06-11 16:19:18 +00:00
configure.in configure.in: Don't pass --with-stabs for mips*-sgi-irix6*o32. 2003-06-11 16:19:18 +00:00
COPYING
COPYING.LIB
install-sh
libtool.m4
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
ltmain.sh
MAINTAINERS Add Dara Hazeghi and Andrew Pinski to Bugzilla-only maintainers. Remove user names from other bug database only maintainers since bugzilla no longer has user names. 2003-06-05 08:44:47 -06:00
Makefile.def Makefile.tpl: Make 'recursive targets' using autogen rather than shell loop. 2003-06-03 20:42:13 +00:00
Makefile.in configure.in: Disable serial configure by default. 2003-06-11 03:04:44 +00:00
Makefile.tpl configure.in: Disable serial configure by default. 2003-06-11 03:04:44 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.