1 |
38 |
julius |
/* 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.
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
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)
|
11 |
|
|
any later version.
|
12 |
|
|
|
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.
|
17 |
|
|
|
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/>. */
|
21 |
|
|
|
22 |
|
|
/* This file is included after m68k.h by CPU COFF specific files. It
|
23 |
|
|
is not a complete target itself. */
|
24 |
|
|
|
25 |
|
|
/* Used in m68k.c to include required support code. */
|
26 |
|
|
|
27 |
|
|
#define M68K_TARGET_COFF 1
|
28 |
|
|
|
29 |
|
|
/* Generate sdb debugging information. */
|
30 |
|
|
|
31 |
|
|
#define SDB_DEBUGGING_INFO 1
|
32 |
|
|
|
33 |
|
|
/* COFF symbols don't start with an underscore. */
|
34 |
|
|
|
35 |
|
|
#undef USER_LABEL_PREFIX
|
36 |
|
|
#define USER_LABEL_PREFIX ""
|
37 |
|
|
|
38 |
|
|
/* Use a prefix for local labels, just to be on the save side. */
|
39 |
|
|
|
40 |
|
|
#undef LOCAL_LABEL_PREFIX
|
41 |
|
|
#define LOCAL_LABEL_PREFIX "."
|
42 |
|
|
|
43 |
|
|
/* Use a register prefix to avoid clashes with external symbols (classic
|
44 |
|
|
example: `extern char PC;' in termcap). */
|
45 |
|
|
|
46 |
|
|
#undef REGISTER_PREFIX
|
47 |
|
|
#define REGISTER_PREFIX "%"
|
48 |
|
|
|
49 |
|
|
/* In the machine description we can't use %R, because it will not be seen
|
50 |
|
|
by ASM_FPRINTF. (Isn't that a design bug?). */
|
51 |
|
|
|
52 |
|
|
#undef REGISTER_PREFIX_MD
|
53 |
|
|
#define REGISTER_PREFIX_MD "%%"
|
54 |
|
|
|
55 |
|
|
/* config/m68k.md has an explicit reference to the program counter,
|
56 |
|
|
prefix this by the register prefix. */
|
57 |
|
|
|
58 |
|
|
#define ASM_RETURN_CASE_JUMP \
|
59 |
|
|
do { \
|
60 |
|
|
if (TARGET_COLDFIRE) \
|
61 |
|
|
{ \
|
62 |
|
|
if (ADDRESS_REG_P (operands[0])) \
|
63 |
|
|
return "jmp %%pc@(2,%0:l)"; \
|
64 |
|
|
else \
|
65 |
|
|
return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \
|
66 |
|
|
} \
|
67 |
|
|
else \
|
68 |
|
|
return "jmp %%pc@(2,%0:w)"; \
|
69 |
|
|
} while (0)
|
70 |
|
|
|
71 |
|
|
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
|
72 |
|
|
|
73 |
|
|
/* If defined, a C expression whose value is a string containing the
|
74 |
|
|
assembler operation to identify the following data as uninitialized global
|
75 |
|
|
data. */
|
76 |
|
|
|
77 |
|
|
#define BSS_SECTION_ASM_OP "\t.section\t.bss"
|
78 |
|
|
|
79 |
|
|
/* A C statement (sans semicolon) to output to the stdio stream
|
80 |
|
|
FILE the assembler definition of uninitialized global DECL named
|
81 |
|
|
NAME whose size is SIZE bytes and alignment is ALIGN bytes.
|
82 |
|
|
Try to use asm_output_aligned_bss to implement this macro. */
|
83 |
|
|
|
84 |
|
|
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
|
85 |
|
|
asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
|
86 |
|
|
|
87 |
|
|
/* Switch into a generic section. */
|
88 |
|
|
#undef TARGET_ASM_NAMED_SECTION
|
89 |
|
|
#define TARGET_ASM_NAMED_SECTION m68k_coff_asm_named_section
|
90 |
|
|
|
91 |
|
|
/* Don't assume anything about startfiles. */
|
92 |
|
|
|
93 |
|
|
#undef STARTFILE_SPEC
|
94 |
|
|
#define STARTFILE_SPEC ""
|