1 /* Definitions of target machine for GCC, for SPARClite w/o FPU, COFF.
2 Copyright (C) 1994, 1996, 2000, 2002, 2004, 2005
3 Free Software Foundation, Inc.
4 Written by Ken Raeburn (raeburn@cygnus.com).
6 This file is part of GCC.
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 2, or (at your option)
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.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 #define BSS_SECTION_ASM_OP "\t.section\t\".bss\""
25 #define TARGET_OS_CPP_BUILTINS() \
28 builtin_define_std ("sparclite"); \
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) \
53 ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
54 ASM_OUTPUT_LABEL (FILE, NAME); \
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"