From f4926e194af6731b14aadb181cf7aa0d1f331e52 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Thu, 30 Aug 2001 18:20:33 +0000 Subject: config.gcc (h8300-*-elf*): New case. * config.gcc (h8300-*-elf*): New case. * h8300.h (CPP_SPEC): Add subtarget_cpp_spec. (SUBTARGET_CPP_SPEC): Define. (EXTRA_SPECS): Define. (SUBTARGET_EXTRA_SPECS): Define. * config/h8300/crti.asm, config/h8300/crtn.asm: New files. * config/h8300/elf.h, config/h8300/t-elf: Likewise. From-SVN: r45293 --- gcc/config/h8300/elf.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gcc/config/h8300/elf.h (limited to 'gcc/config/h8300/elf.h') diff --git a/gcc/config/h8300/elf.h b/gcc/config/h8300/elf.h new file mode 100644 index 0000000..e23af4a --- /dev/null +++ b/gcc/config/h8300/elf.h @@ -0,0 +1,36 @@ +#undef SUBTARGET_CPP_SPEC +#define SUBTARGET_CPP_SPEC "-D__ELF__" + +/* Undefine some macros defined in h8300 that conflict with elfos.h . */ +#undef SDB_DEBUGGING_INFO +#undef DBX_DEBUGGING_INFO +#undef ASM_OUTPUT_IDENT +#undef IDENT_ASM_OP +#undef CTORS_SECTION_ASM_OP +#undef DTORS_SECTION_ASM_OP +#undef INIT_SECTION_ASM_OP +#undef READONLY_DATA_SECTION +#undef ASM_OUTPUT_CONSTRUCTOR +#undef ASM_OUTPUT_DESTRUCTOR +#undef TARGET_ASM_NAMED_SECTION +#undef TARGET_MEM_FUNCTIONS +#undef PREFERRED_DEBUGGING_TYPE +/* ??? h8300.h defines PCC_BITFIELD_TYPE_MATTERS to 0, but it + doesn't define STRUCTURE_SIZE_BOUNDARY, nor does h8300.md + have a full set of bit field instructions. */ +#undef PCC_BITFIELD_TYPE_MATTERS + +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG + +#include "elfos.h" + +/* Output at beginning/end of assembler file. */ +#undef ASM_FILE_START +#define ASM_FILE_START(FILE) \ + (output_file_directive ((FILE), main_input_filename), \ + asm_file_start (FILE)) + +#undef USER_LABEL_PREFIX +#define USER_LABEL_PREFIX "_" + +#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic) -- cgit v1.1