Commit 8e96d784 by Dehao Chen Committed by Dehao Chen

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
parent a10ec8bc
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> 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
* doc/install.texi (--enable-linker-plugin-configure-flags) * doc/install.texi (--enable-linker-plugin-configure-flags)
......
...@@ -16792,10 +16792,9 @@ add_src_coords_attributes (dw_die_ref die, tree decl) ...@@ -16792,10 +16792,9 @@ add_src_coords_attributes (dw_die_ref die, tree decl)
static void static void
add_linkage_name (dw_die_ref die, tree decl) 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_CODE (decl) == FUNCTION_DECL || TREE_CODE (decl) == VAR_DECL)
&& TREE_PUBLIC (decl) && TREE_PUBLIC (decl)
&& !DECL_ABSTRACT (decl)
&& !(TREE_CODE (decl) == VAR_DECL && DECL_REGISTER (decl)) && !(TREE_CODE (decl) == VAR_DECL && DECL_REGISTER (decl))
&& die->die_tag != DW_TAG_member) && die->die_tag != DW_TAG_member)
{ {
......
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> 2014-06-13 Alan Lawrence <alan.lawrence@arm.com>
* gcc.dg/vect/vect-singleton_1.c: Remove duplicate of test body. * gcc.dg/vect/vect-singleton_1.c: Remove duplicate of test body.
......
...@@ -14,4 +14,4 @@ main() ...@@ -14,4 +14,4 @@ main()
K k; K k;
} }
// { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 2 } } // { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 4 } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment