From b366352bbd1d4439e25d46f101ba898e5642b8d9 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 22 Jul 1999 02:16:55 +0000 Subject: defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro. * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro. * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it. * dwarf2out.c (dwarf2out_init): Don't output a label to mark the start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is false. * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define to zero. From-SVN: r28213 --- gcc/dwarf2out.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 90bedcb..4e1ebee 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10008,7 +10008,10 @@ dwarf2out_init (asm_out_file, main_input_filename) ASM_GENERATE_INTERNAL_LABEL (text_end_label, TEXT_END_LABEL, 0); ASM_GENERATE_INTERNAL_LABEL (abbrev_section_label, ABBREV_SECTION_LABEL, 0); - ASM_GENERATE_INTERNAL_LABEL (text_section_label, TEXT_SECTION_LABEL, 0); + if (DWARF2_GENERATE_TEXT_SECTION_LABEL) + ASM_GENERATE_INTERNAL_LABEL (text_section_label, TEXT_SECTION_LABEL, 0); + else + strcpy (text_section_label, stripattributes (TEXT_SECTION)); ASM_GENERATE_INTERNAL_LABEL (debug_info_section_label, DEBUG_INFO_SECTION_LABEL, 0); ASM_GENERATE_INTERNAL_LABEL (debug_line_section_label, @@ -10017,7 +10020,8 @@ dwarf2out_init (asm_out_file, main_input_filename) ASM_OUTPUT_SECTION (asm_out_file, ABBREV_SECTION); ASM_OUTPUT_LABEL (asm_out_file, abbrev_section_label); ASM_OUTPUT_SECTION (asm_out_file, TEXT_SECTION); - ASM_OUTPUT_LABEL (asm_out_file, text_section_label); + if (DWARF2_GENERATE_TEXT_SECTION_LABEL) + ASM_OUTPUT_LABEL (asm_out_file, text_section_label); ASM_OUTPUT_SECTION (asm_out_file, DEBUG_INFO_SECTION); ASM_OUTPUT_LABEL (asm_out_file, debug_info_section_label); ASM_OUTPUT_SECTION (asm_out_file, DEBUG_LINE_SECTION); -- cgit v1.1