1 /* Definitions of target machine for GCC, for SPARC64, ELF.
2 Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2004, 2005, 2007, 2010,
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)
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. */
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__"
41 -s %{fpic|fPIC|fpie|fPIE:-K PIC} \
42 %{mlittle-endian:-EL} \
43 %(asm_cpu) %(asm_arch) \
46 /* This is taken from sol2.h. */
50 %{mlittle-endian:-EL} \
54 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
57 #define ENDFILE_SPEC \
58 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
61 /* Use the default (for now). */
64 #undef BYTES_BIG_ENDIAN
65 #define BYTES_BIG_ENDIAN (! TARGET_LITTLE_ENDIAN)
67 #undef WORDS_BIG_ENDIAN
68 #define WORDS_BIG_ENDIAN (! TARGET_LITTLE_ENDIAN)
70 #undef LOCAL_LABEL_PREFIX
71 #define LOCAL_LABEL_PREFIX "."
73 /* This is how to store into the string LABEL
74 the symbol_ref name of an internal numbered label where
75 PREFIX is the class of label and NUM is the number within the class.
76 This is suitable for output with `assemble_name'. */
78 #undef ASM_GENERATE_INTERNAL_LABEL
79 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
80 sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
82 /* ??? This should be 32 bits for v9 but what can we do? */
84 #define WCHAR_TYPE "short unsigned int"
86 #undef WCHAR_TYPE_SIZE
87 #define WCHAR_TYPE_SIZE 16
89 #undef LONG_DOUBLE_TYPE_SIZE
90 #define LONG_DOUBLE_TYPE_SIZE 128