Go to file
Jonathan Wakely 156b60e0b9 re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag)
2014-01-28  Jonathan Wakely  <jwakely@redhat.com>
	    Kyle Lippincott  <spectral@google.com>

	PR libstdc++/59656
	* include/bits/shared_ptr.h (shared_ptr): Add new non-throwing
	constructor and grant friendship to weak_ptr.
	(weak_ptr::lock()): Use new constructor.
	* include/bits/shared_ptr_base.h
	(_Sp_counted_base::_M_add_ref_lock_nothrow()): Declare new function
	and define specializations.
	(__shared_count): Add new non-throwing constructor.
	(__shared_ptr): Add new non-throwing constructor and grant friendship
	to __weak_ptr.
	(__weak_ptr::lock()): Use new constructor.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

Co-Authored-By: Kyle Lippincott <spectral@google.com>

From-SVN: r207180
2014-01-28 10:23:27 +00:00
INSTALL README: Also refer to the online installation instructions. 2012-08-25 20:48:20 +00:00
boehm-gc gcconfig.h: Add FreeBSD powerpc64 defines. 2013-12-21 21:42:39 +01:00
config bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Remove -lpthread -ldl. 2013-11-29 20:13:45 +00:00
contrib mklog: Fix description at top of file. 2014-01-27 21:43:09 +00:00
fixincludes fixincludes: use $(FI) instead of fixincl@EXEEXT@ 2013-12-20 13:07:52 +01:00
gcc re PR middle-end/45364 (Compiling wine's directx.c with -O1 -g takes a very long time) 2014-01-28 09:02:59 +00:00
gnattools configure.ac (*-*-lynxos*): Delete. 2014-01-27 08:18:29 +00:00
include include 2014-01-21 15:09:10 +00:00
intl
libada Update copyright years in libada/ 2014-01-02 22:24:25 +00:00
libatomic Update copyright years in libatomic/ 2014-01-02 22:24:30 +00:00
libbacktrace Update copyright years in libbacktrace/ 2014-01-02 22:24:37 +00:00
libcilkrts re PR other/58996 (build failure in libcilkrts) 2014-01-20 09:49:22 -08:00
libcpp PR preprocessor/58580 - preprocessor goes OOM with warning for zero literals 2014-01-23 10:13:08 +01:00
libdecnumber re PR c/59871 (No unused value warning for comma expression) 2014-01-23 19:04:29 +00:00
libffi ffitarget.h: Import from upstream. 2013-12-10 11:12:14 +10:30
libgcc atomic.c: Include tconfig.h. 2014-01-25 20:37:01 +00:00
libgfortran write_float.def (output_float): Remove inadvertent test code from previous patch. 2014-01-21 02:39:53 +00:00
libgo libgo/configure: Test for gold with gccgo -Wl,--help, not ld --help. 2014-01-22 19:10:47 +00:00
libgomp Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
libiberty include 2014-01-21 15:09:10 +00:00
libitm Make sure that -msse/-mavx are appended at the end 2014-01-13 11:36:17 -08:00
libjava Small ChangeLog fixes. 2014-01-02 22:56:58 +01:00
libobjc Update copyright years in libobjc/ 2014-01-02 22:26:09 +00:00
libquadmath gnat_ugn.texi: Bump @copying's copyright year. 2014-01-02 22:25:41 +01:00
libsanitizer re PR sanitizer/57316 (build failure in libsanitizer) 2014-01-23 14:32:05 +00:00
libssp * ssp.c (fail): Avoid -Wformat-security warning. 2013-12-07 09:10:02 +01:00
libstdc++-v3 re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag) 2014-01-28 10:23:27 +00:00
libvtv Fix up ChangeLog entries (name, e-mail, formatting, otherwise). 2013-10-23 21:30:54 +00:00
lto-plugin Fix up ChangeLog entries (name, e-mail, formatting, otherwise). 2013-10-23 21:30:54 +00:00
maintainer-scripts update_web_docs_svn: Work around makeinfo generated file names and references with "_002d" instead... 2013-12-02 20:07:14 +00:00
zlib Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
.dir-locals.el * .dir-locals.el: Add. 2013-10-16 18:25:31 +00:00
.gitignore * .gitignore: Import from gdb repository. 2013-01-10 10:48:46 -05:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog MAINTAINERS: Update my email address. 2014-01-21 23:33:07 +00:00
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS: Update my email address. 2014-01-21 23:33:07 +00:00
Makefile.def Added Cilk runtime library (libcilkrts) into GCC. 2013-10-29 11:37:47 -07:00
Makefile.in Makefile.in: Regenerate. 2013-11-07 19:09:31 +01:00
Makefile.tpl Makefile.tpl: Fix typo. 2013-11-07 16:08:10 +01:00
README * README: Document use of ranges of years in copyright notices. 2012-07-16 15:01:34 +01:00
compile
config-ml.in MAINTAINERS (crx port, [...]): Remove. 2011-03-22 19:58:18 +00:00
config.guess Import from savannah.gnu.org: 2013-10-01 17:50:56 +01:00
config.rpath Remove freebsd1 from libtool.m4 macros and config.rpath. 2011-02-13 11:45:53 +00:00
config.sub Import from savannah.gnu.org: 2013-10-01 17:50:56 +01:00
configure configure.ac: Add user-friendly check for native x86_64-linux multilibs. 2013-12-13 21:42:02 +00:00
configure.ac configure.ac: Add user-friendly check for native x86_64-linux multilibs. 2013-12-13 21:42:02 +00:00
depcomp
install-sh
libtool-ldflags
libtool.m4 libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
symlink-tree
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with 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/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.