2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / arm / xscale-elf.h
blobaea8360dba8baa4671f8afec26eb347d66fa28fe
1 /* Definitions for XScale architectures using ELF
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Catherine Moore <clm@cygnus.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 2, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; 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 /* Run-time Target Specification. */
23 #ifndef TARGET_VERSION
24 #define TARGET_VERSION fputs (" (XScale/ELF non-Linux)", stderr);
25 #endif
27 #ifndef SUBTARGET_CPU_DEFAULT
28 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_xscale
29 #endif
31 /* Note - there are three possible -mfpu= arguments that can be passed to
32 the assembler:
34 -mfpu=softvfp This is the default. It indicates thats doubles are
35 stored in a format compatible with the VFP
36 specification. This is the newer double format, whereby
37 the endian-ness of the doubles matches the endian-ness
38 of the memory architecture.
40 -mfpu=fpa This is when -mhard-float is specified.
41 [It is not known if any XScale's have been made with
42 hardware floating point support, but nevertheless this
43 is what happens].
45 -mfpu=softfpa This is when -msoft-float is specified.
46 This is the normal behavior of other arm configurations,
47 which for backwards compatibility purposes default to
48 supporting the old FPA format which was always big
49 endian, regardless of the endian-ness of the memory
50 system. */
52 #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
53 %{mhard-float:-mfpu=fpa} \
54 %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
56 #ifndef MULTILIB_DEFAULTS
57 #define MULTILIB_DEFAULTS \
58 { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
59 #endif