Go to file
Pierre-Marie de Rodat c0dbd22d2e DWARF: fix scoping for descriptions of local types
In Ada, it is possible to have nested subprograms in the following
configuration:

    procedure Parent is
       type T;
       [...]
       procedure Child (Value : T) is
       begin
          [...]
       end Child;
    begin
       [...]
    end Parent;

As we currently generate debugging information for Child first before
Parent, the debug info for T appears in global scope since the DIE for
Parent does not exist yet.

This patch makes sure that when we generate early debug info for a
nested function, we trigger generation for the parent function first.

gcc/

	* dwarf2out.c (dwarf2out_early_global_decl): For nested
	functions, call dwarf2out_decl on the parent function first.

gcc/testsuite/

	* gnat.dg/debug9.adb: New testcase.

From-SVN: r241023
2016-10-12 08:29:01 +00:00
boehm-gc
config
contrib Revert bogus dg-extract-results.sh change 2016-09-23 11:35:34 +00:00
fixincludes check.tpl: Convert line endings to unix on test outputs 2016-09-30 10:36:18 -06:00
gcc DWARF: fix scoping for descriptions of local types 2016-10-12 08:29:01 +00:00
gnattools
gotools
include dwarf2.def (DW_AT_string_length_bit_size, [...]): New attributes. 2016-08-15 11:51:44 +02:00
INSTALL
intl
libada
libatomic
libbacktrace * all: Remove meaningless trailing whitespace. 2016-09-11 13:44:07 +00:00
libcc1
libcilkrts
libcpp gcc/ 2016-10-12 01:19:06 +02:00
libdecnumber
libffi ffi.c (ffi_struct_type): Put type declaration on separate line. 2016-09-04 17:39:05 +00:00
libgcc Always support float128 on ia64 (PR target/77586). 2016-10-10 23:43:07 +01:00
libgfortran PR 67585 Handle EINTR 2016-10-09 21:05:56 +03:00
libgo configure: redirect -fsplit-stack compilation to dev/null 2016-10-11 13:13:17 +00:00
libgomp typeck.c (cp_build_unary_op): Diagnose incrementing boolean expressions. 2016-09-14 17:46:59 +00:00
libiberty Fix zero-length parameter bug in pex_run. 2016-09-19 10:02:56 +00:00
libitm
libmpx
libobjc
liboffloadmic
libquadmath
libsanitizer re PR sanitizer/77567 (ASAN: Bugus error "alloc-dealloc-mismatch (malloc vs operator delete [])" with C++17's over-aligned types) 2016-09-21 16:40:30 +02:00
libssp
libstdc++-v3 Optimise std::list::assign(initializer_list<T>) slightly 2016-10-11 11:33:41 +01:00
libvtv
lto-plugin
maintainer-scripts re PR web/50642 (onlinedocs formated text too small to read) 2016-09-04 19:38:05 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore .gitignore: Ignore in-tree prerequisites. 2016-09-09 17:20:55 -04:00
ABOUT-NLS
ChangeLog * MAINTAINERS: Update email address. 2016-10-11 10:36:33 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure configure.ac: Add aarch64-*-freebsd*. 2016-10-10 23:31:17 +02:00
configure.ac configure.ac: Add aarch64-*-freebsd*. 2016-10-10 23:31:17 +02:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS * MAINTAINERS: Update email address. 2016-10-11 10:36:33 +00:00
Makefile.def Makefile.def: Remove libjava. 2016-09-30 16:08:23 +00:00
Makefile.in Makefile.def: Remove libjava. 2016-09-30 16:08:23 +00:00
Makefile.tpl Makefile.def: Remove libjava. 2016-09-30 16:08:23 +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 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.