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>
4 
5    This file is part of GCC.
6 
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.
11 
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.
16 
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.  */
21 
22 /* Run-time Target Specification.  */
23 #ifndef TARGET_VERSION
24 #define TARGET_VERSION	fputs (" (XScale/ELF non-Linux)", stderr);
25 #endif
26 
27 #ifndef SUBTARGET_CPU_DEFAULT
28 #define SUBTARGET_CPU_DEFAULT 		TARGET_CPU_xscale
29 #endif
30 
31 /* Note - there are three possible -mfpu= arguments that can be passed to
32    the assembler:
33 
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.
39 
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].
44 
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.  */
51 
52 #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
53   %{mhard-float:-mfpu=fpa} \
54   %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
55 
56 #ifndef MULTILIB_DEFAULTS
57 #define MULTILIB_DEFAULTS \
58   { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
59 #endif
60