From f99ffb608b3069da8ac2b9f25c61c4b4ad77f571 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 17 Aug 2001 11:57:51 -0700 Subject: 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 --- gcc/varasm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 8b752dc..c3a6322 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -233,7 +233,11 @@ text_section () { if (in_section != in_text) { +#ifdef TEXT_SECTION + TEXT_SECTION (); +#else fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP); +#endif in_section = in_text; } } -- cgit v1.1