OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / litecoff.h
1 /* Definitions of target machine for GCC, for SPARClite w/o FPU, COFF.
2    Copyright (C) 1994, 1996, 2000, 2002 Free Software Foundation, Inc.
3    Written by Ken Raeburn (raeburn@cygnus.com).
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 #define BSS_SECTION_ASM_OP      "\t.section\t\".bss\""
23
24 #define TARGET_OS_CPP_BUILTINS()                \
25   do                                            \
26     {                                           \
27         builtin_define_std ("sparc");           \
28         builtin_define_std ("sparclite");       \
29     }                                           \
30   while (0)
31
32 /* Default to stabs in COFF.  */
33
34 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
35
36 /* Support the ctors and dtors sections for g++.  */
37
38 #undef INIT_SECTION_ASM_OP
39
40 #undef DO_GLOBAL_CTORS_BODY
41 #undef DO_GLOBAL_DTORS_BODY
42
43 /* These compiler options take an argument.  We ignore -target for now.  */
44
45 #define WORD_SWITCH_TAKES_ARG(STR)                              \
46  (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                           \
47   || !strcmp (STR, "target") || !strcmp (STR, "assert"))
48
49 /* Output the label for a function definition.  */
50
51 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
52 do {                                                                    \
53   ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));                        \
54   ASM_OUTPUT_LABEL (FILE, NAME);                                        \
55 } while (0)
56
57 /* Output before read-only data.  */
58
59 #define TEXT_SECTION_ASM_OP "\t.text"
60
61 /* Output before writable data.  */
62
63 #define DATA_SECTION_ASM_OP "\t.data"