OSDN Git Service

2001-11-14 David O'Brien <obrien@FreeBSD.org>
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / litecoff.h
1 /* Definitions of target machine for GNU compiler, for SPARClite w/o FPU, COFF.
2    Copyright (C) 1994, 1996, 2000 Free Software Foundation, Inc.
3    Written by Ken Raeburn (raeburn@cygnus.com).
4
5 This file is part of GNU CC.
6
7 GNU CC 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 GNU CC 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 GNU CC; 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 #undef CPP_PREDEFINES
25 #define CPP_PREDEFINES "-Dsparc -Dsparclite -Acpu=sparc -Amachine=sparc"
26
27 /* Default to stabs in COFF.  */
28
29 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
30
31 /* Support the ctors and dtors sections for g++.  */
32
33 #undef INIT_SECTION_ASM_OP
34
35 /* A list of other sections which the compiler might be "in" at any
36    given time.  */
37
38 #undef EXTRA_SECTIONS
39 #define EXTRA_SECTIONS in_const
40
41 /* A list of extra section function definitions.  */
42
43 #undef EXTRA_SECTION_FUNCTIONS
44 #define EXTRA_SECTION_FUNCTIONS                                         \
45   CONST_SECTION_FUNCTION
46
47 #define INT_ASM_OP "\t.long\t"
48
49 #undef DO_GLOBAL_CTORS_BODY
50 #undef DO_GLOBAL_DTORS_BODY
51
52 /* These compiler options take an argument.  We ignore -target for now.  */
53
54 #define WORD_SWITCH_TAKES_ARG(STR)                              \
55  (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                           \
56   || !strcmp (STR, "target") || !strcmp (STR, "assert"))
57
58 /* Output the label for a function definition.  */
59
60 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
61 do {                                                                    \
62   ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));                        \
63   ASM_OUTPUT_LABEL (FILE, NAME);                                        \
64 } while (0)
65
66 /* Output before read-only data.  */
67
68 #define TEXT_SECTION_ASM_OP "\t.text"
69
70 /* Output before writable data.  */
71
72 #define DATA_SECTION_ASM_OP "\t.data"
73
74 /* How to renumber registers for dbx and gdb.  In the flat model, the frame
75    pointer is really %i7.  */
76
77 #define DBX_REGISTER_NUMBER(REGNO) \
78   (TARGET_FLAT && REGNO == FRAME_POINTER_REGNUM ? 31 : REGNO)