Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/m68k/coff.h @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
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. | |
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 /* config/m68k.md has an explicit reference to the program counter, | |
50 prefix this by the register prefix. */ | |
51 | |
52 #define ASM_RETURN_CASE_JUMP \ | |
53 do { \ | |
54 if (TARGET_COLDFIRE) \ | |
55 { \ | |
56 if (ADDRESS_REG_P (operands[0])) \ | |
57 return "jmp %%pc@(2,%0:l)"; \ | |
58 else \ | |
59 return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \ | |
60 } \ | |
61 else \ | |
62 return "jmp %%pc@(2,%0:w)"; \ | |
63 } while (0) | |
64 | |
65 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true | |
66 | |
67 /* If defined, a C expression whose value is a string containing the | |
68 assembler operation to identify the following data as uninitialized global | |
69 data. */ | |
70 | |
71 #define BSS_SECTION_ASM_OP "\t.section\t.bss" | |
72 | |
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. */ | |
77 | |
78 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ | |
79 asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN)) | |
80 | |
81 /* Switch into a generic section. */ | |
82 #undef TARGET_ASM_NAMED_SECTION | |
83 #define TARGET_ASM_NAMED_SECTION m68k_coff_asm_named_section | |
84 | |
85 /* Don't assume anything about startfiles. */ | |
86 | |
87 #undef STARTFILE_SPEC | |
88 #define STARTFILE_SPEC "" |