Emit linkage names for inlined functions.

* dwarf2out.c (add_linkage_name): Emit more linkage name.
	* g++.dg/debug/dwarf2/cdtor-1.C: Update test result.

From-SVN: r211647
This commit is contained in:
Dehao Chen 2014-06-13 15:46:11 +00:00 committed by Dehao Chen
parent a10ec8bcac
commit 8e96d78433
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-06-13 Dehao Chen <dehao@google.com>
* dwarf2out.c (add_linkage_name): Emit more linkage name.
2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
* doc/install.texi (--enable-linker-plugin-configure-flags)

View File

@ -16792,10 +16792,9 @@ add_src_coords_attributes (dw_die_ref die, tree decl)
static void
add_linkage_name (dw_die_ref die, tree decl)
{
if (debug_info_level > DINFO_LEVEL_TERSE
if (debug_info_level > DINFO_LEVEL_NONE
&& (TREE_CODE (decl) == FUNCTION_DECL || TREE_CODE (decl) == VAR_DECL)
&& TREE_PUBLIC (decl)
&& !DECL_ABSTRACT (decl)
&& !(TREE_CODE (decl) == VAR_DECL && DECL_REGISTER (decl))
&& die->die_tag != DW_TAG_member)
{

View File

@ -1,3 +1,7 @@
2014-06-13 Dehao Chen <dehao@google.com>
* g++.dg/debug/dwarf2/cdtor-1.C: Update test result.
2014-06-13 Alan Lawrence <alan.lawrence@arm.com>
* gcc.dg/vect/vect-singleton_1.c: Remove duplicate of test body.

View File

@ -14,4 +14,4 @@ main()
K k;
}
// { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 2 } }
// { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 4 } }