Go to file
Pedro Alves bc2eed9a8e Fix demangler testsuite crashes with CP_DEMANGLE_DEBUG defined
Running the demangler's testsuite with CP_DEMANGLE_DEBUG defined
crashes, with:

 Program received signal SIGSEGV, Segmentation fault.
 0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 567       switch (dc->type)

 (gdb) bt 3
 #0  0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 #1  0x000000000040ae47 in d_dump (dc=0x7fffffffd098, indent=10) at ../../src/libiberty/cp-demangle.c:787
 #2  0x000000000040ae47 in d_dump (dc=0x7fffffffd0c8, indent=8) at ../../src/libiberty/cp-demangle.c:787

Note dc=0x1, which is obviously a bogus pointer.  This is the end of
d_dump recursing for a component type that that doesn't actually have
subtrees:

 787       d_dump (d_left (dc), indent + 2);
 788       d_dump (d_right (dc), indent + 2);

This fixes the two cases the testsuite currently trips on.

libiberty/
2014-05-28  Pedro Alves  <palves@redhat.com>

	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
	and DEMANGLE_COMPONENT_NUMBER.

From-SVN: r211035
2014-05-28 21:55:41 +00:00
INSTALL
boehm-gc Enable Java on Cygwin-64 2014-05-13 16:23:11 +00:00
config configure.ac (target_makefile_frag): Set for nios2-*-elf*. 2014-05-14 19:20:59 -04:00
contrib dg-extract-results.py (Named): Remove __cmp__ method. 2014-05-25 09:35:15 +00:00
fixincludes Remove obsolete Solaris 9 support 2014-04-22 12:30:59 +00:00
gcc revert: lra-int.h (struct lra_reg): Add field actual_call_used_reg_set. 2014-05-28 21:50:28 +00:00
gnattools Makefile.in (TOOLS_FLAGS_TO_PASS_CROSS): Robustify. 2014-02-23 16:30:11 +00:00
include config.gcc (*-*-dragonfly*): New target. 2014-05-21 12:08:58 +01:00
intl
libada
libatomic re PR c++/60272 (atomic<>::compare_exchange_weak has spurious store and can cause race conditions) 2014-02-20 09:43:53 -08:00
libbacktrace mmap.c (backtrace_free): If freeing a large aligned block of memory, call munmap rather than holding onto it. 2014-05-09 05:01:08 +00:00
libcilkrts config.gcc (*-*-dragonfly*): New target. 2014-05-21 12:08:58 +01:00
libcpp configure.ac: Remove long long and __int64 type checks... 2014-05-26 08:19:02 +00:00
libdecnumber
libffi libffi.exp (load_gcc_lib): Register loaded libs. 2014-05-20 08:20:06 +00:00
libgcc t-msp430 (HOST_LIBGCC2_CFLAGS): Add -mhwmult=none. 2014-05-22 15:15:36 +00:00
libgfortran getcwd.c: Include stdlib.h. 2014-05-27 11:15:52 +02:00
libgo libgo/runtime: fix unused-result warning 2014-05-27 22:01:21 +00:00
libgomp declare-simd-1.f90: Require vect_simd_clones effective target. 2014-05-27 11:14:53 +02:00
libiberty Fix demangler testsuite crashes with CP_DEMANGLE_DEBUG defined 2014-05-28 21:55:41 +00:00
libitm Centralise clearing hardware capabilities with Sun ld 2014-05-28 11:32:54 +00:00
libjava libffi.exp (load_gcc_lib): Register loaded libs. 2014-05-20 08:20:06 +00:00
libobjc
libquadmath
libsanitizer builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT. 2014-05-23 14:44:42 +00:00
libssp
libstdc++-v3 2014-05-25 Paolo Carlini <paolo.carlini@oracle.com> 2014-05-28 08:59:32 +00:00
libvtv
lto-plugin Check for -static-libgcc before use (PR lto/60981) 2014-05-15 09:52:37 +00:00
maintainer-scripts * crontab: Enable snapshots from gcc-4_9-branch. 2014-04-11 14:55:17 +02:00
zlib
.dir-locals.el
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Add myself to MAINTAINERS. 2014-05-28 21:51:47 +00:00
ChangeLog.tree-ssa
MAINTAINERS Add myself to MAINTAINERS. 2014-05-28 21:51:47 +00:00
Makefile.def re PR bootstrap/60620 (missing gnattools dependency causes highly parallel build failure with --disable-bootstrap) 2014-04-04 20:53:48 +00:00
Makefile.in re PR bootstrap/60620 (missing gnattools dependency causes highly parallel build failure with --disable-bootstrap) 2014-04-04 20:53:48 +00:00
Makefile.tpl re PR bootstrap/58572 (make bootstrap-lean leads to installation failure (doing extra rebuilds and invoking system compiler)) 2014-03-07 13:58:27 +01:00
README
compile
config-ml.in
config.guess * config.sub, config.guess: Import from upstream. 2014-05-01 20:51:11 +00:00
config.rpath
config.sub * config.sub, config.guess: Import from upstream. 2014-05-01 20:51:11 +00:00
configure configure.ac (target_makefile_frag): Set for nios2-*-elf*. 2014-05-14 19:20:59 -04:00
configure.ac configure.ac (target_makefile_frag): Set for nios2-*-elf*. 2014-05-14 19:20:59 -04:00
depcomp
install-sh
libtool-ldflags re PR sanitizer/56781 (boostrap-asan failure: fixincl fails to link (missing -lasan)) 2014-04-17 14:23:28 +02:00
libtool.m4
ltgcc.m4
ltmain.sh Ensure libgcc_s unwinder is always used on 64-bit Solaris 10+/x86 (PR target/59788) 2014-02-04 09:31:38 +00:00
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.