diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-17 18:57:51 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-17 18:57:51 +0000 |
commit | 25e5d448acc7ba4755b60cd152bc537010aaf038 (patch) | |
tree | 90b323eb19d0d77a62d5a276e6c63d57dc653568 /gcc/dwarfout.c | |
parent | ef5291f55dce34df92e5f4ea5c485a08d9ab0158 (diff) | |
download | gcc-25e5d448acc7ba4755b60cd152bc537010aaf038.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44973 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 057dee29d82..5c8b8bc6a2d 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -1006,23 +1006,23 @@ static void retry_incomplete_types PARAMS ((void)); #ifndef DEBUG_ARANGES_SECTION #define DEBUG_ARANGES_SECTION ".debug_aranges" #endif -#ifndef TEXT_SECTION -#define TEXT_SECTION ".text" +#ifndef TEXT_SECTION_NAME +#define TEXT_SECTION_NAME ".text" #endif -#ifndef DATA_SECTION -#define DATA_SECTION ".data" +#ifndef DATA_SECTION_NAME +#define DATA_SECTION_NAME ".data" #endif -#ifndef DATA1_SECTION -#define DATA1_SECTION ".data1" +#ifndef DATA1_SECTION_NAME +#define DATA1_SECTION_NAME ".data1" #endif -#ifndef RODATA_SECTION -#define RODATA_SECTION ".rodata" +#ifndef RODATA_SECTION_NAME +#define RODATA_SECTION_NAME ".rodata" #endif -#ifndef RODATA1_SECTION -#define RODATA1_SECTION ".rodata1" +#ifndef RODATA1_SECTION_NAME +#define RODATA1_SECTION_NAME ".rodata1" #endif -#ifndef BSS_SECTION -#define BSS_SECTION ".bss" +#ifndef BSS_SECTION_NAME +#define BSS_SECTION_NAME ".bss" #endif /* Definitions of defaults for formats and names of various special @@ -6326,14 +6326,14 @@ dwarfout_init (main_input_filename) /* Output a starting label for the .text section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, TEXT_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, TEXT_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, TEXT_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); /* Output a starting label for the .data section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, DATA_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); @@ -6341,7 +6341,7 @@ dwarfout_init (main_input_filename) /* Output a starting label for the .data1 section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA1_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA1_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, DATA1_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); #endif @@ -6349,7 +6349,7 @@ dwarfout_init (main_input_filename) /* Output a starting label for the .rodata section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, RODATA_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); @@ -6357,7 +6357,7 @@ dwarfout_init (main_input_filename) /* Output a starting label for the .rodata1 section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA1_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA1_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, RODATA1_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); #endif @@ -6365,7 +6365,7 @@ dwarfout_init (main_input_filename) /* Output a starting label for the .bss section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, BSS_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, BSS_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, BSS_BEGIN_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); @@ -6523,14 +6523,14 @@ dwarfout_finish (main_input_filename) /* Output a terminator label for the .text section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, TEXT_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, TEXT_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, TEXT_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); /* Output a terminator label for the .data section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, DATA_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); @@ -6538,7 +6538,7 @@ dwarfout_finish (main_input_filename) /* Output a terminator label for the .data1 section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA1_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, DATA1_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, DATA1_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); #endif @@ -6546,7 +6546,7 @@ dwarfout_finish (main_input_filename) /* Output a terminator label for the .rodata section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, RODATA_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); @@ -6554,7 +6554,7 @@ dwarfout_finish (main_input_filename) /* Output a terminator label for the .rodata1 section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA1_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, RODATA1_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, RODATA1_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); #endif @@ -6562,7 +6562,7 @@ dwarfout_finish (main_input_filename) /* Output a terminator label for the .bss section. */ fputc ('\n', asm_out_file); - ASM_OUTPUT_PUSH_SECTION (asm_out_file, BSS_SECTION); + ASM_OUTPUT_PUSH_SECTION (asm_out_file, BSS_SECTION_NAME); ASM_OUTPUT_LABEL (asm_out_file, BSS_END_LABEL); ASM_OUTPUT_POP_SECTION (asm_out_file); |