2013-01-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / config / sparc / sp64-elf.h
blob17463b4c68de16b6885a834ef03e5c689541faec
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.
7 This file is part of GCC.
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.
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.
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/>. */
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)
29 #undef SPARC_DEFAULT_CMODEL
30 #define SPARC_DEFAULT_CMODEL CM_EMBMEDANY
32 /* Don't assume anything about the header files. */
33 #define NO_IMPLICIT_EXTERN_C
35 /* __svr4__ is used by the C library (FIXME) */
36 #undef CPP_SUBTARGET_SPEC
37 #define CPP_SUBTARGET_SPEC "-D__svr4__"
39 #undef ASM_SPEC
40 #define ASM_SPEC "\
41 -s %{fpic|fPIC|fpie|fPIE:-K PIC} \
42 %(asm_cpu) %(asm_arch) \
45 /* This is taken from sol2.h. */
46 #undef LINK_SPEC
47 #define LINK_SPEC "\
48 %{v:-V} \
51 #undef STARTFILE_SPEC
52 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
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"
59 /* Use the default (for now). */
60 #undef LIB_SPEC
62 #undef LOCAL_LABEL_PREFIX
63 #define LOCAL_LABEL_PREFIX "."
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'. */
70 #undef ASM_GENERATE_INTERNAL_LABEL
71 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
72 sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
74 /* ??? This should be 32 bits for v9 but what can we do? */
75 #undef WCHAR_TYPE
76 #define WCHAR_TYPE "short unsigned int"
78 #undef WCHAR_TYPE_SIZE
79 #define WCHAR_TYPE_SIZE 16
81 #undef LONG_DOUBLE_TYPE_SIZE
82 #define LONG_DOUBLE_TYPE_SIZE 128