From bc808e0bc5cff1895e4d6c29a8ee7775cef10594 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 13 Mar 2000 15:09:49 +0000 Subject: [PATCH] dwarf2out.c (add_name_and_src_coords_attributes): Only add DW_AT_MIPS_linkage_name for TREE_PUBLIC decls. * dwarf2out.c (add_name_and_src_coords_attributes): Only add DW_AT_MIPS_linkage_name for TREE_PUBLIC decls. (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline. From-SVN: r32506 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbdf615efbe..b9394c558d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-03-13 Jason Merrill + + * dwarf2out.c (add_name_and_src_coords_attributes): Only add + DW_AT_MIPS_linkage_name for TREE_PUBLIC decls. + (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline. + 2000-03-13 Richard Earnshaw * stor-layout.c (new_record_layout_info): Fix typo inside ifdef diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0f18779f38c..eb772d871c2 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -365,7 +365,6 @@ static void dwarf2out_frame_debug_expr PARAMS ((rtx, char *)); do { \ fprintf ((FILE), "\t%s\t", UNALIGNED_WORD_ASM_OP); \ output_addr_const ((FILE), (RTX)); \ - fputc ('\n', (FILE)); \ } while (0) #endif @@ -7464,6 +7463,7 @@ add_name_and_src_coords_attributes (die, decl) add_src_coords_attributes (die, decl); if ((TREE_CODE (decl) == FUNCTION_DECL || TREE_CODE (decl) == VAR_DECL) + && TREE_PUBLIC (decl) && DECL_ASSEMBLER_NAME (decl) != DECL_NAME (decl)) add_AT_string (die, DW_AT_MIPS_linkage_name, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));