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