]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/sparc/sp64-elf.h
Delete remaining references to sparc little-endian support.
[thirdparty/gcc.git] / gcc / config / sparc / sp64-elf.h
1 /* Definitions of target machine for GCC, for SPARC64, ELF.
2 Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2004, 2005, 2007, 2010,
3 2011
4 Free Software Foundation, Inc.
5 Contributed by Doug Evans, dje@cygnus.com.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
13
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING3. If not see
21 <http://www.gnu.org/licenses/>. */
22
23 /* A 64 bit v9 compiler in a Medium/Anywhere code model environment. */
24 #undef TARGET_DEFAULT
25 #define TARGET_DEFAULT \
26 (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \
27 + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128)
28
29 #undef SPARC_DEFAULT_CMODEL
30 #define SPARC_DEFAULT_CMODEL CM_EMBMEDANY
31
32 /* Don't assume anything about the header files. */
33 #define NO_IMPLICIT_EXTERN_C
34
35 /* __svr4__ is used by the C library (FIXME) */
36 #undef CPP_SUBTARGET_SPEC
37 #define CPP_SUBTARGET_SPEC "-D__svr4__"
38
39 #undef ASM_SPEC
40 #define ASM_SPEC "\
41 -s %{fpic|fPIC|fpie|fPIE:-K PIC} \
42 %(asm_cpu) %(asm_arch) \
43 "
44
45 /* This is taken from sol2.h. */
46 #undef LINK_SPEC
47 #define LINK_SPEC "\
48 %{v:-V} \
49 "
50
51 #undef STARTFILE_SPEC
52 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
53
54 #undef ENDFILE_SPEC
55 #define ENDFILE_SPEC \
56 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
57 crtend.o%s crtn.o%s"
58
59 /* Use the default (for now). */
60 #undef LIB_SPEC
61 \f
62 #undef LOCAL_LABEL_PREFIX
63 #define LOCAL_LABEL_PREFIX "."
64
65 /* This is how to store into the string LABEL
66 the symbol_ref name of an internal numbered label where
67 PREFIX is the class of label and NUM is the number within the class.
68 This is suitable for output with `assemble_name'. */
69
70 #undef ASM_GENERATE_INTERNAL_LABEL
71 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
72 sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
73 \f
74 /* ??? This should be 32 bits for v9 but what can we do? */
75 #undef WCHAR_TYPE
76 #define WCHAR_TYPE "short unsigned int"
77
78 #undef WCHAR_TYPE_SIZE
79 #define WCHAR_TYPE_SIZE 16
80
81 #undef LONG_DOUBLE_TYPE_SIZE
82 #define LONG_DOUBLE_TYPE_SIZE 128