1 /* Definitions of target machine for GNU compiler.
2 m68k series COFF object files and debugging, version.
3 Copyright (C) 1994, 1996, 1997, 2000, 2002, 2003, 2004, 2007
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 /* This file is included after m68k.h by CPU COFF specific files. It
23 is not a complete target itself. */
25 /* Used in m68k.c to include required support code. */
27 #define M68K_TARGET_COFF 1
29 /* Generate sdb debugging information. */
31 #define SDB_DEBUGGING_INFO 1
33 /* COFF symbols don't start with an underscore. */
35 #undef USER_LABEL_PREFIX
36 #define USER_LABEL_PREFIX ""
38 /* Use a prefix for local labels, just to be on the save side. */
40 #undef LOCAL_LABEL_PREFIX
41 #define LOCAL_LABEL_PREFIX "."
43 /* Use a register prefix to avoid clashes with external symbols (classic
44 example: `extern char PC;' in termcap). */
46 #undef REGISTER_PREFIX
47 #define REGISTER_PREFIX "%"
49 /* config/m68k.md has an explicit reference to the program counter,
50 prefix this by the register prefix. */
52 #define ASM_RETURN_CASE_JUMP \
54 if (TARGET_COLDFIRE) \
56 if (ADDRESS_REG_P (operands[0])) \
57 return "jmp %%pc@(2,%0:l)"; \
59 return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \
62 return "jmp %%pc@(2,%0:w)"; \
65 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
67 /* If defined, a C expression whose value is a string containing the
68 assembler operation to identify the following data as uninitialized global
71 #define BSS_SECTION_ASM_OP "\t.section\t.bss"
73 /* A C statement (sans semicolon) to output to the stdio stream
74 FILE the assembler definition of uninitialized global DECL named
75 NAME whose size is SIZE bytes and alignment is ALIGN bytes.
76 Try to use asm_output_aligned_bss to implement this macro. */
78 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
79 asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
81 /* Switch into a generic section. */
82 #undef TARGET_ASM_NAMED_SECTION
83 #define TARGET_ASM_NAMED_SECTION m68k_coff_asm_named_section
85 /* Don't assume anything about startfiles. */
88 #define STARTFILE_SPEC ""