]>
Commit | Line | Data |
---|---|---|
81b47219 EB |
1 | /* Definitions of target machine for GCC, |
2 | for SPARC running in an embedded environment using the ELF file format. | |
a5544970 | 3 | Copyright (C) 2005-2019 Free Software Foundation, Inc. |
81b47219 EB |
4 | |
5 | This file is part of GCC. | |
6 | ||
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 | |
2f83c7d6 | 9 | the Free Software Foundation; either version 3, or (at your option) |
81b47219 EB |
10 | any later version. |
11 | ||
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. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
2f83c7d6 NC |
18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
81b47219 | 20 | |
12eb1a9c | 21 | /* It's safe to pass -s always, even if -g is not used. */ |
81b47219 EB |
22 | #undef ASM_SPEC |
23 | #define ASM_SPEC \ | |
c75d884b | 24 | "-s \ |
428b3812 | 25 | %{" FPIE_OR_FPIC_SPEC ":-K PIC} %(asm_cpu)" |
81b47219 EB |
26 | |
27 | /* Use the default. */ | |
28 | #undef LINK_SPEC | |
29 | ||
30 | #undef STARTFILE_SPEC | |
31 | #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s" | |
32 | ||
33 | #undef ENDFILE_SPEC | |
34 | #define ENDFILE_SPEC \ | |
0691dde9 | 35 | "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ |
81b47219 EB |
36 | crtend.o%s crtn.o%s" |
37 | ||
38 | /* Don't set the target flags, this is done by the linker script */ | |
39 | #undef LIB_SPEC | |
40 | #define LIB_SPEC "" | |
81b47219 EB |
41 | \f |
42 | #undef LOCAL_LABEL_PREFIX | |
43 | #define LOCAL_LABEL_PREFIX "." | |
44 | ||
45 | /* This is how to store into the string LABEL | |
46 | the symbol_ref name of an internal numbered label where | |
47 | PREFIX is the class of label and NUM is the number within the class. | |
48 | This is suitable for output with `assemble_name'. */ | |
49 | ||
50 | #undef ASM_GENERATE_INTERNAL_LABEL | |
51 | #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ | |
52 | sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM)) | |
05f44cf5 EB |
53 | |
54 | /* We use GNU ld so undefine this so that attribute((init_priority)) works. */ | |
55 | #undef CTORS_SECTION_ASM_OP | |
56 | #undef DTORS_SECTION_ASM_OP | |
81b47219 EB |
57 | \f |
58 | /* ??? Inherited from sol2.h. Probably wrong. */ | |
59 | #undef WCHAR_TYPE | |
60 | #define WCHAR_TYPE "long int" | |
61 | ||
62 | #undef WCHAR_TYPE_SIZE | |
63 | #define WCHAR_TYPE_SIZE BITS_PER_WORD | |
64 | ||
65 | /* ??? until fixed. */ | |
66 | #undef LONG_DOUBLE_TYPE_SIZE | |
67 | #define LONG_DOUBLE_TYPE_SIZE 64 |