Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/alpha/vms.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Output variables, constants and external declarations, for GNU compiler. |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2004, 2005, 2007, 2008, |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
3 2009, 2010 |
0 | 4 Free Software Foundation, Inc. |
5 | |
6 This file is part of GCC. | |
7 | |
8 GCC is free software; you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
10 the Free Software Foundation; either version 3, or (at your option) | |
11 any later version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with GCC; see the file COPYING3. If not see | |
20 <http://www.gnu.org/licenses/>. */ | |
21 | |
22 #define TARGET_OBJECT_SUFFIX ".obj" | |
23 #define TARGET_EXECUTABLE_SUFFIX ".exe" | |
24 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 /* Alpha/VMS object format is not really Elf, but this makes compiling |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
26 crtstuff.c and dealing with shared library initialization much easier. */ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
27 #define OBJECT_FORMAT_ELF |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
28 |
0 | 29 /* This enables certain macros in alpha.h, which will make an indirect |
30 reference to an external symbol an invalid address. This needs to be | |
31 defined before we include alpha.h, since it determines which macros | |
32 are used for GO_IF_*. */ | |
33 | |
34 #define NO_EXTERNAL_INDIRECT_ADDRESS | |
35 | |
36 #define TARGET_OS_CPP_BUILTINS() \ | |
37 do { \ | |
38 builtin_define_std ("vms"); \ | |
39 builtin_define_std ("VMS"); \ | |
40 builtin_define ("__ALPHA"); \ | |
41 builtin_assert ("system=vms"); \ | |
42 if (TARGET_FLOAT_VAX) \ | |
43 builtin_define ("__G_FLOAT"); \ | |
44 else \ | |
45 builtin_define ("__IEEE_FLOAT"); \ | |
46 } while (0) | |
47 | |
48 #undef TARGET_DEFAULT | |
49 #define TARGET_DEFAULT (MASK_FPREGS|MASK_GAS) | |
50 #undef TARGET_ABI_OPEN_VMS | |
51 #define TARGET_ABI_OPEN_VMS 1 | |
52 | |
53 #undef TARGET_NAME | |
54 #define TARGET_NAME "OpenVMS/Alpha" | |
55 #undef TARGET_VERSION | |
56 #define TARGET_VERSION fprintf (stderr, " (%s)", TARGET_NAME); | |
57 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
58 #define VMS_DEBUG_MAIN_POINTER "TRANSFER$BREAK$GO" |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
59 |
0 | 60 #undef PCC_STATIC_STRUCT_RETURN |
61 | |
62 /* "long" is 32 bits, but 64 bits for Ada. */ | |
63 #undef LONG_TYPE_SIZE | |
64 #define LONG_TYPE_SIZE 32 | |
65 #define ADA_LONG_TYPE_SIZE 64 | |
66 | |
67 /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended. */ | |
68 #undef POINTER_SIZE | |
69 #define POINTER_SIZE 32 | |
70 #define POINTERS_EXTEND_UNSIGNED 0 | |
71 | |
72 #define MAX_OFILE_ALIGNMENT 524288 /* 8 x 2^16 by DEC Ada Test CD40VRA */ | |
73 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
74 /* The maximum alignment 'malloc' honors. */ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
75 #undef MALLOC_ABI_ALIGNMENT |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
76 #define MALLOC_ABI_ALIGNMENT ((TARGET_MALLOC64 ? 16 : 8) * BITS_PER_UNIT) |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
77 |
0 | 78 #undef FIXED_REGISTERS |
79 #define FIXED_REGISTERS \ | |
80 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
81 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, \ | |
82 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } | |
84 | |
85 #undef CALL_USED_REGISTERS | |
86 #define CALL_USED_REGISTERS \ | |
87 {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
88 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ | |
89 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, \ | |
90 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } | |
91 | |
92 /* List the order in which to allocate registers. Each register must be | |
93 listed once, even those in FIXED_REGISTERS. | |
94 | |
95 We allocate in the following order: | |
96 $f1 (nonsaved floating-point register) | |
97 $f10-$f15 (likewise) | |
98 $f22-$f30 (likewise) | |
99 $f21-$f16 (likewise, but input args) | |
100 $f0 (nonsaved, but return value) | |
101 $f2-$f9 (saved floating-point registers) | |
102 $1 (nonsaved integer registers) | |
103 $22-$25 (likewise) | |
104 $28 (likewise) | |
105 $0 (likewise, but return value) | |
106 $21-$16 (likewise, but input args) | |
107 $27 (procedure value in OSF, nonsaved in NT) | |
108 $2-$8 (saved integer registers) | |
109 $9-$14 (saved integer registers) | |
110 $26 (return PC) | |
111 $15 (frame pointer) | |
112 $29 (global pointer) | |
113 $30, $31, $f31 (stack pointer and always zero/ap & fp) */ | |
114 | |
115 #undef REG_ALLOC_ORDER | |
116 #define REG_ALLOC_ORDER \ | |
117 {33, \ | |
118 42, 43, 44, 45, 46, 47, \ | |
119 54, 55, 56, 57, 58, 59, 60, 61, 62, \ | |
120 53, 52, 51, 50, 49, 48, \ | |
121 32, \ | |
122 34, 35, 36, 37, 38, 39, 40, 41, \ | |
123 1, \ | |
124 22, 23, 24, 25, \ | |
125 28, \ | |
126 0, \ | |
127 21, 20, 19, 18, 17, 16, \ | |
128 27, \ | |
129 2, 3, 4, 5, 6, 7, 8, \ | |
130 9, 10, 11, 12, 13, 14, \ | |
131 26, \ | |
132 15, \ | |
133 29, \ | |
134 30, 31, 63 } | |
135 | |
136 #undef HARD_FRAME_POINTER_REGNUM | |
137 #define HARD_FRAME_POINTER_REGNUM 29 | |
138 | |
139 /* Define registers used by the epilogue and return instruction. */ | |
140 #undef EPILOGUE_USES | |
141 #define EPILOGUE_USES(REGNO) ((REGNO) == 26 || (REGNO) == 29) | |
142 | |
143 #undef INITIAL_ELIMINATION_OFFSET | |
144 #define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
145 ((OFFSET) = alpha_vms_initial_elimination_offset(FROM, TO)) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
146 |
0 | 147 |
148 /* Define a data type for recording info about an argument list | |
149 during the scan of that argument list. This data type should | |
150 hold all necessary information about the function itself | |
151 and about the args processed so far, enough to enable macros | |
152 such as FUNCTION_ARG to determine where the next arg should go. | |
153 | |
154 On Alpha/VMS, this is a structure that contains the number of | |
155 arguments and, for each argument, the datatype of that argument. | |
156 | |
157 The number of arguments is a number of words of arguments scanned so far. | |
158 Thus 6 or more means all following args should go on the stack. */ | |
159 | |
160 enum avms_arg_type {I64, FF, FD, FG, FS, FT}; | |
161 typedef struct {int num_args; enum avms_arg_type atypes[6];} avms_arg_info; | |
162 | |
163 #undef CUMULATIVE_ARGS | |
164 #define CUMULATIVE_ARGS avms_arg_info | |
165 | |
166 /* Initialize a variable CUM of type CUMULATIVE_ARGS | |
167 for a call to a function whose data type is FNTYPE. | |
168 For a library call, FNTYPE is 0. */ | |
169 | |
170 #undef INIT_CUMULATIVE_ARGS | |
171 #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS) \ | |
172 (CUM).num_args = 0; \ | |
173 (CUM).atypes[0] = (CUM).atypes[1] = (CUM).atypes[2] = I64; \ | |
174 (CUM).atypes[3] = (CUM).atypes[4] = (CUM).atypes[5] = I64; | |
175 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
176 #define DEFAULT_PCC_STRUCT_RETURN 0 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
177 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
178 #undef ASM_WEAKEN_LABEL |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
179 #define ASM_WEAKEN_LABEL(FILE, NAME) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
180 do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
181 fputc ('\n', FILE); } while (0) |
0 | 182 |
183 #define READONLY_DATA_SECTION_ASM_OP "\t.rdata" | |
184 #define CTORS_SECTION_ASM_OP "\t.ctors" | |
185 #define DTORS_SECTION_ASM_OP "\t.dtors" | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
186 #define SDATA_SECTION_ASM_OP "\t.sdata" |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
187 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
188 asm (SECTION_OP "\n\t.long " #FUNC"\n"); |
0 | 189 |
190 #undef ASM_OUTPUT_ADDR_DIFF_ELT | |
191 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) gcc_unreachable () | |
192 | |
193 #undef ASM_OUTPUT_ADDR_VEC_ELT | |
194 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \ | |
195 fprintf (FILE, "\t.quad $L%d\n", (VALUE)) | |
196 | |
197 #undef CASE_VECTOR_MODE | |
198 #define CASE_VECTOR_MODE DImode | |
199 #undef CASE_VECTOR_PC_RELATIVE | |
200 | |
201 #undef ASM_OUTPUT_CASE_LABEL | |
202 #define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLEINSN) \ | |
203 { ASM_OUTPUT_ALIGN (FILE, 3); (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM); } | |
204 | |
205 /* This says how to output assembler code to declare an | |
206 uninitialized external linkage data object. */ | |
207 | |
208 #define COMMON_ASM_OP "\t.comm\t" | |
209 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
210 #undef ASM_OUTPUT_ALIGNED_DECL_COMMON |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
211 #define ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
212 vms_output_aligned_decl_common (FILE, DECL, NAME, SIZE, ALIGN) |
0 | 213 |
214 /* Control how constructors and destructors are emitted. */ | |
215 #define TARGET_ASM_CONSTRUCTOR vms_asm_out_constructor | |
216 #define TARGET_ASM_DESTRUCTOR vms_asm_out_destructor | |
217 | |
218 #undef SDB_DEBUGGING_INFO | |
219 #undef MIPS_DEBUGGING_INFO | |
220 #undef DBX_DEBUGGING_INFO | |
221 | |
222 #define DWARF2_DEBUGGING_INFO 1 | |
223 #define VMS_DEBUGGING_INFO 1 | |
224 | |
225 #define DWARF2_UNWIND_INFO 1 | |
226 | |
227 #undef EH_RETURN_HANDLER_RTX | |
228 #define EH_RETURN_HANDLER_RTX \ | |
229 gen_rtx_MEM (Pmode, plus_constant (stack_pointer_rtx, 8)) | |
230 | |
231 #define LINK_EH_SPEC "vms-dwarf2eh.o%s " | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
232 #define LINK_GCC_C_SEQUENCE_SPEC "%G" |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
233 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
234 #ifdef IN_LIBGCC2 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
235 /* Get the definition for MD_FALLBACK_FRAME_STATE_FOR from a separate |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
236 file. This avoids having to recompile the world instead of libgcc only |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
237 when changes to this macro are exercised. */ |
0 | 238 |
239 #define MD_UNWIND_SUPPORT "config/alpha/vms-unwind.h" | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
240 #endif |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
241 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
242 #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
243 avms_asm_output_external (FILE, DECL, NAME) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
244 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
245 typedef struct crtl_name_spec |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
246 { |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
247 const char *const name; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
248 const char *deccname; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
249 int referenced; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
250 } crtl_name_spec; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
251 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
252 #include "config/vms/vms-crtl.h" |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
253 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
254 /* Alias CRTL names to 32/64bit DECCRTL functions. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
255 Fixme: This should do a binary search. */ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
256 #define DO_CRTL_NAMES \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
257 do \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
258 { \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
259 int i; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
260 static crtl_name_spec vms_crtl_names[] = CRTL_NAMES; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
261 static int malloc64_init = 0; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
262 \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
263 if ((malloc64_init == 0) && TARGET_MALLOC64) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
264 { \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
265 for (i=0; vms_crtl_names [i].name; i++) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
266 { \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
267 if (strcmp ("calloc", vms_crtl_names [i].name) == 0) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
268 vms_crtl_names [i].deccname = "decc$_calloc64"; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
269 else \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
270 if (strcmp ("malloc", vms_crtl_names [i].name) == 0) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
271 vms_crtl_names [i].deccname = "decc$_malloc64"; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
272 else \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
273 if (strcmp ("realloc", vms_crtl_names [i].name) == 0) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
274 vms_crtl_names [i].deccname = "decc$_realloc64"; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
275 else \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
276 if (strcmp ("strdup", vms_crtl_names [i].name) == 0) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
277 vms_crtl_names [i].deccname = "decc$_strdup64"; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
278 } \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
279 malloc64_init = 1; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
280 } \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
281 for (i=0; vms_crtl_names [i].name; i++) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
282 if (!vms_crtl_names [i].referenced && \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
283 (strcmp (name, vms_crtl_names [i].name) == 0)) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
284 { \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
285 fprintf (file, "\t%s=%s\n", \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
286 name, vms_crtl_names [i].deccname); \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
287 vms_crtl_names [i].referenced = 1; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
288 } \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
289 } while (0) |
0 | 290 |
291 /* This is how to output an assembler line | |
292 that says to advance the location counter | |
293 to a multiple of 2**LOG bytes. */ | |
294 | |
295 #undef ASM_OUTPUT_ALIGN | |
296 #define ASM_OUTPUT_ALIGN(FILE,LOG) \ | |
297 fprintf (FILE, "\t.align %d\n", LOG); | |
298 | |
299 /* Switch into a generic section. */ | |
300 #define TARGET_ASM_NAMED_SECTION vms_asm_named_section | |
301 | |
302 #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \ | |
303 do { fprintf ((FILE), "\t.literals\n"); \ | |
304 in_section = NULL; \ | |
305 fprintf ((FILE), "\t"); \ | |
306 assemble_name (FILE, LABEL1); \ | |
307 fprintf (FILE, " = "); \ | |
308 assemble_name (FILE, LABEL2); \ | |
309 fprintf (FILE, "\n"); \ | |
310 } while (0) | |
311 | |
312 #undef PREFERRED_DEBUGGING_TYPE | |
313 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG | |
314 | |
315 #define ASM_PN_FORMAT "%s___%lu" | |
316 | |
317 /* ??? VMS uses different linkage. */ | |
318 #undef TARGET_ASM_OUTPUT_MI_THUNK | |
319 | |
320 #undef ASM_SPEC | |
321 #undef ASM_FINAL_SPEC | |
322 | |
323 /* The VMS convention is to always provide minimal debug info | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
324 for a traceback unless specifically overridden. */ |
0 | 325 |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
326 #undef SUBTARGET_OVERRIDE_OPTIONS |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
327 #define SUBTARGET_OVERRIDE_OPTIONS \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
328 do { \ |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
329 if (write_symbols == NO_DEBUG \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
330 && debug_info_level == DINFO_LEVEL_NONE) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
331 { \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
332 write_symbols = VMS_DEBUG; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
333 debug_info_level = DINFO_LEVEL_TERSE; \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
334 } \ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
335 } while (0) |
0 | 336 |
337 /* Link with vms-dwarf2.o if -g (except -g0). This causes the | |
338 VMS link to pull all the dwarf2 debug sections together. */ | |
339 #undef LINK_SPEC | |
340 #define LINK_SPEC "%{g:-g vms-dwarf2.o%s} %{g0} %{g1:-g1 vms-dwarf2.o%s} \ | |
341 %{g2:-g2 vms-dwarf2.o%s} %{g3:-g3 vms-dwarf2.o%s} %{shared} %{v} %{map}" | |
342 | |
343 #undef STARTFILE_SPEC | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
344 #define STARTFILE_SPEC \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
345 "%{!shared:%{mvms-return-codes:vcrt0.o%s} %{!mvms-return-codes:pcrt0.o%s} \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
346 crtbegin.o%s} \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
347 %{!static:%{shared:crtbeginS.o%s}}" |
0 | 348 |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
349 #define ENDFILE_SPEC \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
350 "%{!shared:crtend.o%s} %{!static:%{shared:crtendS.o%s}}" |
0 | 351 |
352 #define NAME__MAIN "__gccmain" | |
353 #define SYMBOL__MAIN __gccmain | |
354 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
355 #define INIT_SECTION_ASM_OP "\t.section LIB$INITIALIZE,GBL,NOWRT" |
0 | 356 |
357 #define LONGLONG_STANDALONE 1 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
358 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
359 #undef TARGET_VALID_POINTER_MODE |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
360 #define TARGET_VALID_POINTER_MODE vms_valid_pointer_mode |