summaryrefslogtreecommitdiff
path: root/gcc/config/mips/netbsd.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 18:57:51 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 18:57:51 +0000
commit25e5d448acc7ba4755b60cd152bc537010aaf038 (patch)
tree90b323eb19d0d77a62d5a276e6c63d57dc653568 /gcc/config/mips/netbsd.h
parentef5291f55dce34df92e5f4ea5c485a08d9ab0158 (diff)
downloadgcc-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/config/mips/netbsd.h')
-rw-r--r--gcc/config/mips/netbsd.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/mips/netbsd.h b/gcc/config/mips/netbsd.h
index 13e7b089d79..cdb80376cef 100644
--- a/gcc/config/mips/netbsd.h
+++ b/gcc/config/mips/netbsd.h
@@ -205,6 +205,19 @@ do { \
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
+/* Not having TARGET_GAS here seems a mistake. If we actually need to
+ be prepared for file switching, then we need a custom
+ TARGET_ASM_NAMED_SECTION too. */
+
+#undef TEXT_SECTION
+#define TEXT_SECTION()
+do {
+ if (TARGET_FILE_SWITCHING)
+ abort ();
+ fputs (TEXT_SECTION_ASM_OP, asm_out_file);
+ fputc ('\n', asm_out_file);
+} while (0)
+
/* Since gas and gld are standard on NetBSD, we don't need these */
#undef ASM_FINAL_SPEC
#undef STARTFILE_SPEC