Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/sol2-10.h @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | b7f97abdc517 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 /* Solaris 10 configuration. | |
2 Copyright (C) 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
3 Contributed by CodeSourcery, LLC. | |
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 | |
9 the Free Software Foundation; either version 3, or (at your option) | |
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 | |
18 along with GCC; see the file COPYING3. If not see | |
19 <http://www.gnu.org/licenses/>. */ | |
20 | |
21 #undef ASM_COMMENT_START | |
22 #define ASM_COMMENT_START "/" | |
23 | |
24 /* binutils' GNU as understands --32 and --64, but the native Solaris | |
25 assembler requires -xarch=generic or -xarch=generic64 instead. */ | |
26 #undef ASM_SPEC | |
27 #ifdef USE_GAS | |
28 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \ | |
29 "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)" | |
30 #else | |
31 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \ | |
32 "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \ | |
33 "-s %(asm_cpu)" | |
34 #endif | |
35 | |
36 /* The native Solaris assembler can't calculate the difference between | |
37 symbols in different sections, which causes problems for -fPIC jump | |
38 tables in .rodata. */ | |
39 #ifndef HAVE_AS_IX86_DIFF_SECT_DELTA | |
40 #undef JUMP_TABLES_IN_TEXT_SECTION | |
41 #define JUMP_TABLES_IN_TEXT_SECTION 1 | |
42 | |
43 /* The native Solaris assembler cannot handle the SYMBOL-. syntax, but | |
44 requires SYMBOL@rel/@rel64 instead. */ | |
45 #define ASM_OUTPUT_DWARF_PCREL(FILE, SIZE, LABEL) \ | |
46 do { \ | |
47 fputs (integer_asm_op (SIZE, FALSE), FILE); \ | |
48 assemble_name (FILE, LABEL); \ | |
49 fputs (SIZE == 8 ? "@rel64" : "@rel", FILE); \ | |
50 } while (0) | |
51 #endif | |
52 | |
53 #undef NO_PROFILE_COUNTERS | |
54 | |
55 #undef MCOUNT_NAME | |
56 #define MCOUNT_NAME "_mcount" | |
57 | |
58 #undef WCHAR_TYPE | |
59 #define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int") | |
60 #undef WCHAR_TYPE_SIZE | |
61 #define WCHAR_TYPE_SIZE 32 | |
62 | |
63 #undef WINT_TYPE | |
64 #define WINT_TYPE (TARGET_64BIT ? "int" : "long int") | |
65 #undef WINT_TYPE_SIZE | |
66 #define WINT_TYPE_SIZE 32 | |
67 | |
68 #define SUBTARGET_OVERRIDE_OPTIONS \ | |
69 do \ | |
70 { \ | |
71 if (flag_omit_frame_pointer == 2) \ | |
72 flag_omit_frame_pointer = 0; \ | |
73 } \ | |
74 while (0) | |
75 | |
76 #undef TARGET_SUBTARGET_DEFAULT | |
77 #define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP \ | |
78 | MASK_FLOAT_RETURNS) | |
79 | |
80 #define SUBTARGET_OPTIMIZATION_OPTIONS \ | |
81 do \ | |
82 { \ | |
83 if (optimize >= 1) \ | |
84 target_flags |= MASK_OMIT_LEAF_FRAME_POINTER; \ | |
85 } \ | |
86 while (0) | |
87 | |
88 #define MULTILIB_DEFAULTS { "m32" } | |
89 | |
90 #undef LINK_ARCH64_SPEC_BASE | |
91 #define LINK_ARCH64_SPEC_BASE \ | |
92 "%{G:-G} \ | |
93 %{YP,*} \ | |
94 %{R*} \ | |
95 %{compat-bsd: \ | |
96 %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \ | |
97 %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \ | |
98 -R /usr/ucblib/64} \ | |
99 %{!compat-bsd: \ | |
100 %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \ | |
101 %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}" | |
102 | |
103 #undef LINK_ARCH64_SPEC | |
104 #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE | |
105 | |
106 #ifdef TARGET_GNU_LD | |
107 #define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:-m elf_i386} " | |
108 #else | |
109 #define TARGET_LD_EMULATION "" | |
110 #endif | |
111 | |
112 #undef LINK_ARCH_SPEC | |
113 #define LINK_ARCH_SPEC TARGET_LD_EMULATION \ | |
114 "%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}" | |
115 | |
116 /* We do not need to search a special directory for startup files. */ | |
117 #undef MD_STARTFILE_PREFIX | |
118 | |
119 #undef TARGET_ASM_NAMED_SECTION | |
120 #define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section | |
121 | |
122 #undef SUBTARGET_RETURN_IN_MEMORY | |
123 #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \ | |
124 ix86_sol10_return_in_memory (TYPE, FNTYPE) |