2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
[official-gcc.git] / gcc / config / sh / symbian-pre.h
blobc415069d7a6d26ada255158f9f8fbe9d4f11a03c
1 /* Definitions for the Symbian OS running on an SH part.
2 This file is included before any other target specific headers.
4 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
5 Contributed by Red Hat.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published
11 by the Free Software Foundation; either version 2, or (at your
12 option) any later version.
14 GCC is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to the
21 Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. */
24 /* Enable Symbian specific code. */
25 #define SYMBIAN 1
27 /* Default to using the Renesas ABI. */
28 #define TARGET_ABI_DEFAULT MASK_HITACHI
30 #define SUBTARGET_CPP_SPEC ""
32 /* Get tree.c to declare merge_dllimport_decl_attributes(). */
33 #define TARGET_DLLIMPORT_DECL_ATTRIBUTES 1
35 /* The Symbian OS currently does not support exception handling. */
36 #define SUBTARGET_CC1PLUS_SPEC "-fno-exceptions"
38 /* Create constructor/destructor sections without the writable flag.
39 Symbian puts them into the text segment and munges them later on. */
40 #define CTORS_SECTION_ASM_OP "\t.section\t.ctors,\"ax\",@progbits"
41 #define DTORS_SECTION_ASM_OP "\t.section\t.dtors,\"ax\",@progbits"