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
This commit is contained in:
Jason Merrill 2000-03-13 15:09:49 +00:00 committed by Jason Merrill
parent f132af859b
commit bc808e0bc5
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2000-03-13 Jason Merrill <jason@casey.cygnus.com>
* 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 <rearnsha@arm.com>
* stor-layout.c (new_record_layout_info): Fix typo inside ifdef

View File

@ -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)));