2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / sparc / litecoff.h
blobe31a0b40553ab9189f1efcdf8ddb7feaa95a93ee
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).
5 This file is part of GCC.
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.
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.
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. */
22 #define BSS_SECTION_ASM_OP "\t.section\t\".bss\""
24 #define TARGET_OS_CPP_BUILTINS() \
25 do \
26 { \
27 builtin_define_std ("sparc"); \
28 builtin_define_std ("sparclite"); \
29 } \
30 while (0)
32 /* Default to stabs in COFF. */
34 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
36 /* Support the ctors and dtors sections for g++. */
38 #undef INIT_SECTION_ASM_OP
40 #undef DO_GLOBAL_CTORS_BODY
41 #undef DO_GLOBAL_DTORS_BODY
43 /* These compiler options take an argument. We ignore -target for now. */
45 #define WORD_SWITCH_TAKES_ARG(STR) \
46 (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
47 || !strcmp (STR, "target") || !strcmp (STR, "assert"))
49 /* Output the label for a function definition. */
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)
57 /* Output before read-only data. */
59 #define TEXT_SECTION_ASM_OP "\t.text"
61 /* Output before writable data. */
63 #define DATA_SECTION_ASM_OP "\t.data"
65 /* How to renumber registers for dbx and gdb. In the flat model, the frame
66 pointer is really %i7. */
68 #define DBX_REGISTER_NUMBER(REGNO) \
69 (TARGET_FLAT && (REGNO) == HARD_FRAME_POINTER_REGNUM ? 31 : REGNO)