diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-17 11:57:51 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-08-17 11:57:51 -0700 |
commit | f99ffb608b3069da8ac2b9f25c61c4b4ad77f571 (patch) | |
tree | 90b323eb19d0d77a62d5a276e6c63d57dc653568 /gcc/dwarf2out.c | |
parent | 61f38a77a0c4f467c59707ce434d34eae52d6692 (diff) | |
download | gcc-f99ffb608b3069da8ac2b9f25c61c4b4ad77f571.zip gcc-f99ffb608b3069da8ac2b9f25c61c4b4ad77f571.tar.gz gcc-f99ffb608b3069da8ac2b9f25c61c4b4ad77f571.tar.bz2 |
varasm.c (text_section): Allow TEXT_SECTION to override the printing of TEXT_SECTION_ASM_OP.
* varasm.c (text_section): Allow TEXT_SECTION to override the
printing of TEXT_SECTION_ASM_OP.
* dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
(DATA_SECTION, BSS_SECTION): Remove.
* dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
Rename from s/_NAME//.
* config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
(ASM_DECLARE_FUNCTION_NAME): Move file switching ...
(TEXT_SECTION): ... here. New.
* config/mips/elf.h (TEXT_SECTION): New; no file switching.
* config/mips/elf64.h, config/mips/netbsd.h: Likewise.
* config/mips/openbsd.h: Likewise.
* config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
(mips_asm_file_end): Likewise test.
(mips_output_function_epilogue): Likewise. Switch back to data
section after emitting the function.
From-SVN: r44973
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 30cf072..cc1de94 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3647,14 +3647,8 @@ static char *gen_internal_sym PARAMS ((const char *)); #endif /* Standard ELF section names for compiled code and data. */ -#ifndef TEXT_SECTION -#define TEXT_SECTION ".text" -#endif -#ifndef DATA_SECTION -#define DATA_SECTION ".data" -#endif -#ifndef BSS_SECTION -#define BSS_SECTION ".bss" +#ifndef TEXT_SECTION_NAME +#define TEXT_SECTION_NAME ".text" #endif /* Labels we insert at beginning sections we can reference instead of @@ -11688,7 +11682,7 @@ dwarf2out_init (main_input_filename) 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)); + strcpy (text_section_label, stripattributes (TEXT_SECTION_NAME)); ASM_GENERATE_INTERNAL_LABEL (debug_info_section_label, DEBUG_INFO_SECTION_LABEL, 0); ASM_GENERATE_INTERNAL_LABEL (debug_line_section_label, |