Debian Codegraph @

gcc/config/sol2.h

raw
1 /* Operating system specific defines to be used when targeting GCC for any
2 Solaris 2 system.
3 Copyright (C) 2002-2025 Free Software Foundation, Inc.
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 /* We are compiling for Solaris 2 now. */
22 #define TARGET_SOLARIS 1
23
24 /* wchar_t is called differently in <wchar.h> for 32 and 64-bit
25 compilations. This is called for by SCD 2.4.1, p. 6-83, Figure 6-65
26 (32-bit) and p. 6P-10, Figure 6.38 (64-bit). */
27
28 #undef WCHAR_TYPE
29 #define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int")
30
31 #undef WCHAR_TYPE_SIZE
32 #define WCHAR_TYPE_SIZE 32
33
34 /* Same for wint_t. See SCD 2.4.1, p. 6-83, Figure 6-66 (32-bit). There's
35 no corresponding 64-bit definition, but this is what Solaris 8
36 <iso/wchar_iso.h> uses. */
37
38 #undef WINT_TYPE
39 #define WINT_TYPE (TARGET_64BIT ? "int" : "long int")
40
41 #undef WINT_TYPE_SIZE
42 #define WINT_TYPE_SIZE 32
43
44 #define SIG_ATOMIC_TYPE "int"
45
46 /* ??? This definition of int8_t follows the system header but does
47 not conform to C99. Likewise int_fast8_t, int_least8_t. */
48 #define INT8_TYPE "char"
49 #define INT16_TYPE "short int"
50 #define INT32_TYPE "int"
51 #define INT64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
52 #define UINT8_TYPE "unsigned char"
53 #define UINT16_TYPE "short unsigned int"
54 #define UINT32_TYPE "unsigned int"
55 #define UINT64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
56
57 #define INT_LEAST8_TYPE "char"
58 #define INT_LEAST16_TYPE "short int"
59 #define INT_LEAST32_TYPE "int"
60 #define INT_LEAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
61 #define UINT_LEAST8_TYPE "unsigned char"
62 #define UINT_LEAST16_TYPE "short unsigned int"
63 #define UINT_LEAST32_TYPE "unsigned int"
64 #define UINT_LEAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
65
66 #define INT_FAST8_TYPE "char"
67 #define INT_FAST16_TYPE "int"
68 #define INT_FAST32_TYPE "int"
69 #define INT_FAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
70 #define UINT_FAST8_TYPE "unsigned char"
71 #define UINT_FAST16_TYPE "unsigned int"
72 #define UINT_FAST32_TYPE "unsigned int"
73 #define UINT_FAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
74
75 #define INTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "int")
76 #define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "unsigned int")
77
78 #undef CPP_SUBTARGET_SPEC
79 #define CPP_SUBTARGET_SPEC "\
80 %{pthreads|pthread:-D_REENTRANT -D_PTHREADS}"
81
82 /* Names to predefine in the preprocessor for this target machine. */
83 #define TARGET_SUB_OS_CPP_BUILTINS()
84 #define TARGET_OS_CPP_BUILTINS() \
85 do { \
86 builtin_define_std ("unix"); \
87 builtin_define_std ("sun"); \
88 builtin_define ("__svr4__"); \
89 builtin_define ("__SVR4"); \
90 builtin_assert ("system=unix"); \
91 builtin_assert ("system=svr4"); \
92 /* For C++ we need to add some additional macro \
93 definitions required by the C++ standard \
94 library. */ \
95 if (c_dialect_cxx ()) \
96 { \
97 switch (cxx_dialect) \
98 { \
99 case cxx98: \
100 case cxx11: \
101 case cxx14: \
102 /* C++11 and C++14 are based on C99. \
103 libstdc++ makes use of C99 features \
104 even for C++98. */ \
105 builtin_define ("__STDC_VERSION__=199901L");\
106 break; \
107 \
108 default: \
109 /* C++17 is based on C11. */ \
110 builtin_define ("__STDC_VERSION__=201112L");\
111 break; \
112 } \
113 builtin_define ("_XOPEN_SOURCE=600"); \
114 builtin_define ("_LARGEFILE_SOURCE=1"); \
115 builtin_define ("_LARGEFILE64_SOURCE=1"); \
116 builtin_define ("_FILE_OFFSET_BITS=64"); \
117 builtin_define ("__EXTENSIONS__"); \
118 } \
119 TARGET_SUB_OS_CPP_BUILTINS(); \
120 } while (0)
121
122 #if DEFAULT_ARCH32_P
123 #define MULTILIB_DEFAULTS { "m32" }
124 #else
125 #define MULTILIB_DEFAULTS { "m64" }
126 #endif
127
128 #if DEFAULT_ARCH32_P
129 #define DEF_ARCH32_SPEC(__str) "%{!m64:" __str "}"
130 #define DEF_ARCH64_SPEC(__str) "%{m64:" __str "}"
131 #else
132 #define DEF_ARCH32_SPEC(__str) "%{m32:" __str "}"
133 #define DEF_ARCH64_SPEC(__str) "%{!m32:" __str "}"
134 #endif
135
136 /* Solaris needs -fasynchronous-unwind-tables to generate unwind info. */
137 #define ASAN_CC1_SPEC "%{%:sanitize(address):-fasynchronous-unwind-tables}"
138
139 /* It's safe to pass -s always, even if -g is not used. Those options are
140 handled by both Sun as and GNU as. */
141 #define ASM_SPEC_BASE \
142 "%{v:-V} %{Qy:} %{!Qn:-Qy} %{Ym,*} -s %(asm_cpu)"
143
144 #define ASM_PIC_SPEC " %{" FPIE_OR_FPIC_SPEC ":-K PIC}"
145
146 #undef ASM_CPU_DEFAULT_SPEC
147 #define ASM_CPU_DEFAULT_SPEC \
148 (DEFAULT_ARCH32_P ? "\
149 %{m64:" ASM_CPU64_DEFAULT_SPEC "} \
150 %{!m64:" ASM_CPU32_DEFAULT_SPEC "} \
151 " : "\
152 %{m32:" ASM_CPU32_DEFAULT_SPEC "} \
153 %{!m32:" ASM_CPU64_DEFAULT_SPEC "} \
154 ")
155
156 #undef LIB_SPEC
157 #define LIB_SPEC \
158 "%{!symbolic:\
159 %{p|pg:-ldl} -lc}"
160
161 #ifndef CROSS_DIRECTORY_STRUCTURE
162 #undef MD_EXEC_PREFIX
163 #define MD_EXEC_PREFIX "/usr/ccs/bin/"
164 #endif
165
166 /* Enable constructor priorities if the configured linker supports it. */
167 #undef SUPPORTS_INIT_PRIORITY
168 #define SUPPORTS_INIT_PRIORITY HAVE_INITFINI_ARRAY_SUPPORT
169
170 /* Solaris libc and libm implement multiple behaviours for various
171 interfaces that have changed over the years in different versions of the
172 C standard. The behaviour is controlled by linking corresponding
173 values-*.o objects. Each of these objects contain alternate definitions
174 of one or more variables that the libraries use to select which
175 conflicting behaviour they should exhibit. There are two sets of these
176 objects, values-X*.o and values-xpg*.o.
177
178 The values-X[ac].o objects set the variable _lib_version. The Studio C
179 compilers use values-Xc.o with either -Xc or (since Studio 12.6)
180 -pedantic to select strictly conformant ISO C behaviour, otherwise
181 values-Xa.o. Since -pedantic is a diagnostic option only in GCC, we
182 need to specifiy the -std=c* options and -std=iso9899:199409. We
183 traditionally include -ansi, which affects C and C++, and also -std=c++*
184 for consistency.
185
186 The values-xpg[46].o objects define either or both __xpg[46] variables,
187 selecting XPG4 mode (__xpg4) and conforming C99/SUSv3 behavior (__xpg6).
188
189 Since GCC 5, gcc defaults to -std=gnu11 or higher, so we link
190 values-xpg6.o to get C99 semantics. Besides, most of the runtime
191 libraries always require C99 semantics.
192
193 Since only one instance of _lib_version and __xpg[46] takes effekt (the
194 first in ld.so.1's search path), we only link the values-*.o files into
195 executable programs. */
196 #undef STARTFILE_ARCH_SPEC
197 #define STARTFILE_ARCH_SPEC \
198 "%{!shared:%{!symbolic: \
199 %{ansi|std=c*|std=iso9899\\:199409:values-Xc.o%s; :values-Xa.o%s} \
200 %{std=c90|std=gnu90:values-xpg4.o%s; :values-xpg6.o%s}}}"
201
202 #if defined(HAVE_LD_PIE)
203 #define STARTFILE_CRTBEGIN_SPEC "%{static:crtbegin.o%s; \
204 shared|" PIE_SPEC ":crtbeginS.o%s; \
205 :crtbegin.o%s}"
206 #else
207 #define STARTFILE_CRTBEGIN_SPEC "crtbegin.o%s"
208 #endif
209
210 #if ENABLE_VTABLE_VERIFY
211 #if SUPPORTS_INIT_PRIORITY
212 #define STARTFILE_VTV_SPEC \
213 "%{fvtable-verify=none:%s; \
214 fvtable-verify=preinit:vtv_start_preinit.o%s; \
215 fvtable-verify=std:vtv_start.o%s}"
216 #define ENDFILE_VTV_SPEC \
217 "%{fvtable-verify=none:%s; \
218 fvtable-verify=preinit:vtv_end_preinit.o%s; \
219 fvtable-verify=std:vtv_end.o%s}"
220 #else /* !SUPPORTS_INIT_PRIORITY */
221 #define STARTFILE_VTV_SPEC \
222 "%{fvtable-verify=*: \
223 %e-fvtable-verify=%* is not supported in this configuration}"
224 #define ENDFILE_VTV_SPEC ""
225 #endif /* !SUPPORTS_INIT_PRIORITY */
226 #else /* !ENABLE_VTABLE_VERIFY */
227 #define STARTFILE_VTV_SPEC ""
228 #define ENDFILE_VTV_SPEC ""
229 #endif /* !ENABLE_VTABLE_VERIFY */
230
231 /* Link -lasan early on the command line. For -static-libasan, don't link
232 it for -shared link, the executable should be compiled with -static-libasan
233 in that case, and for executable link with --{,no-}whole-archive around
234 it to force everything into the executable. */
235
236 #ifndef USE_GNU_LD
237 #define LD_WHOLE_ARCHIVE_OPTION "-z allextract"
238 #define LD_NO_WHOLE_ARCHIVE_OPTION "-z defaultextract"
239 #else
240 #define LD_WHOLE_ARCHIVE_OPTION "--whole-archive"
241 #define LD_NO_WHOLE_ARCHIVE_OPTION "--no-whole-archive"
242 #endif
243
244 /* Allow rejecting -fsanitize=address, e.g. for specific multilibs. */
245 #ifndef ASAN_REJECT_SPEC
246 #define ASAN_REJECT_SPEC ""
247 #endif
248
249 #define LIBASAN_EARLY_SPEC ASAN_REJECT_SPEC \
250 " %{!shared:libasan_preinit%O%s} \
251 %{static-libasan:%{!shared: -Bstatic "\
252 LD_WHOLE_ARCHIVE_OPTION " -lasan " LD_NO_WHOLE_ARCHIVE_OPTION \
253 " -Bdynamic}}%{!static-libasan:-z now -lasan}"
254
255 /* Error out on -fsanitize=thread|leak. */
256 #define LIBTSAN_EARLY_SPEC "\
257 %e-fsanitize=thread is not supported in this configuration"
258 #define LIBLSAN_EARLY_SPEC "\
259 %e-fsanitize=leak is not supported in this configuration"
260
261 /* We don't use the standard svr4 STARTFILE_SPEC because it's wrong for us. */
262 #undef STARTFILE_SPEC
263 /* Since Solaris 11.4, the OS delivers crt1.o, crti.o, and crtn.o, with a hook
264 for compiler-dependent stuff like profile handling. */
265 #define STARTFILE_SPEC "%{!shared:%{!symbolic: \
266 crt1.o%s \
267 %{p:%e-p is not supported; \
268 pg:crtpg.o%s gmon.o%s; \
269 :crtp.o%s}}} \
270 crti.o%s %(startfile_arch) %(startfile_crtbegin) \
271 %(startfile_vtv)"
272
273 #if defined(HAVE_LD_PIE)
274 #define ENDFILE_CRTEND_SPEC "%{static:crtend.o%s; \
275 shared|" PIE_SPEC ":crtendS.o%s; \
276 :crtend.o%s}"
277 #else
278 #define ENDFILE_CRTEND_SPEC "crtend.o%s"
279 #endif
280
281 #undef ENDFILE_SPEC
282 #define ENDFILE_SPEC \
283 "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}} \
284 %(endfile_arch) %(endfile_vtv) %(endfile_crtend) crtn.o%s"
285
286 #undef LINK_ARCH32_SPEC_BASE
287 #define LINK_ARCH32_SPEC_BASE \
288 "%{G:-G} \
289 %{YP,*} \
290 %{R*} \
291 %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp%R/lib:%R/usr/lib} \
292 %{!p:%{!pg:-Y P,%R/lib:%R/usr/lib}}}"
293
294 #undef LINK_ARCH32_SPEC
295 #define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE
296
297 /* This should be the same as LINK_ARCH32_SPEC_BASE, except with
298 ARCH64_SUBDIR appended to the paths. */
299 #undef LINK_ARCH64_SPEC_BASE
300 #define LINK_ARCH64_SPEC_BASE \
301 "%{G:-G} \
302 %{YP,*} \
303 %{R*} \
304 %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/" ARCH64_SUBDIR ":%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "} \
305 %{!p:%{!pg:-Y P,%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "}}}"
306
307 #undef LINK_ARCH64_SPEC
308 #ifndef USE_GLD
309 /* FIXME: Used to be SPARC-only. Not SPARC-specfic but for the model name! */
310 #define LINK_ARCH64_SPEC \
311 "%{mcmodel=medlow:-M /usr/lib/ld/" ARCH64_SUBDIR "/map.below4G} " \
312 LINK_ARCH64_SPEC_BASE
313 #else
314 #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
315 #endif
316
317 #ifdef USE_GLD
318 #if DEFAULT_ARCH32_P
319 #define ARCH_DEFAULT_EMULATION ARCH32_EMULATION
320 #else
321 #define ARCH_DEFAULT_EMULATION ARCH64_EMULATION
322 #endif
323 #define TARGET_LD_EMULATION "%{m32:-m " ARCH32_EMULATION "}" \
324 "%{m64:-m " ARCH64_EMULATION "}" \
325 "%{!m32:%{!m64:-m " ARCH_DEFAULT_EMULATION "}} "
326 #else
327 #define TARGET_LD_EMULATION ""
328 #endif
329
330 #undef LINK_ARCH_SPEC
331 #if DISABLE_MULTILIB
332 #if DEFAULT_ARCH32_P
333 #define LINK_ARCH_SPEC TARGET_LD_EMULATION " \
334 %{m32:%(link_arch32)} \
335 %{m64:%edoes not support multilib} \
336 %{!m32:%{!m64:%(link_arch_default)}} \
337 "
338 #else
339 #define LINK_ARCH_SPEC TARGET_LD_EMULATION " \
340 %{m32:%edoes not support multilib} \
341 %{m64:%(link_arch64)} \
342 %{!m32:%{!m64:%(link_arch_default)}} \
343 "
344 #endif
345 #else
346 #define LINK_ARCH_SPEC TARGET_LD_EMULATION " \
347 %{m32:%(link_arch32)} \
348 %{m64:%(link_arch64)} \
349 %{!m32:%{!m64:%(link_arch_default)}}"
350 #endif
351
352 #define LINK_ARCH_DEFAULT_SPEC \
353 (DEFAULT_ARCH32_P ? LINK_ARCH32_SPEC : LINK_ARCH64_SPEC)
354
355 #undef SUBTARGET_EXTRA_SPECS
356 #define SUBTARGET_EXTRA_SPECS \
357 { "startfile_arch", STARTFILE_ARCH_SPEC }, \
358 { "startfile_crtbegin", STARTFILE_CRTBEGIN_SPEC }, \
359 { "startfile_vtv", STARTFILE_VTV_SPEC }, \
360 { "link_arch32", LINK_ARCH32_SPEC }, \
361 { "link_arch64", LINK_ARCH64_SPEC }, \
362 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
363 { "link_arch", LINK_ARCH_SPEC }, \
364 { "endfile_arch", ENDFILE_ARCH_SPEC }, \
365 { "endfile_crtend", ENDFILE_CRTEND_SPEC }, \
366 { "endfile_vtv", ENDFILE_VTV_SPEC }, \
367 SUBTARGET_CPU_EXTRA_SPECS
368
369 #ifndef USE_GLD
370 /* With Sun ld, -rdynamic is a no-op. */
371 #define RDYNAMIC_SPEC ""
372 #else
373 /* GNU ld needs --export-dynamic to implement -rdynamic. */
374 #define RDYNAMIC_SPEC "--export-dynamic"
375 #endif
376
377 #ifndef USE_GLD
378 /* Prefer native form with Solaris ld. */
379 #define SYSROOT_SPEC "-z sysroot=%R"
380 #endif
381
382 #if !defined(USE_GLD) && defined(ENABLE_SHARED_LIBGCC)
383 /* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder. */
384 #define LINK_LIBGCC_MAPFILE_SPEC \
385 "%{shared|shared-libgcc:-M %slibgcc-unwind.map}"
386 #else
387 /* GNU ld doesn't support direct binding. */
388 #define LINK_LIBGCC_MAPFILE_SPEC ""
389 #endif
390
391 /* Clear hardware capabilities, either explicitly or with OpenMP:
392 #pragma openmp declare simd creates clones for SSE2, AVX, and AVX2. */
393 #ifdef HAVE_LD_CLEARCAP
394 #define LINK_CLEARCAP_SPEC " %{mclear-hwcap|fopenmp*:-M %sclearcap.map}"
395 #else
396 #define LINK_CLEARCAP_SPEC ""
397 #endif
398
399 #undef LINK_SPEC
400 #define LINK_SPEC \
401 "%{h*} %{v:-V} \
402 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
403 %{static:-dn -Bstatic} \
404 %{shared:-G -dy %{!mimpure-text:-z text}} " \
405 LINK_LIBGCC_MAPFILE_SPEC LINK_CLEARCAP_SPEC " \
406 %{symbolic:-Bsymbolic -G -dy -z text} \
407 %(link_arch) \
408 %{Qy:} %{!Qn:-Qy}"
409
410 /* Use --as-needed/-z ignore -lgcc_s for eh support. */
411 #ifdef HAVE_LD_AS_NEEDED
412 #define USE_LD_AS_NEEDED 1
413 #endif
414
415 #ifdef USE_GLD
416 /* GNU ld needs --eh-frame-hdr to create the required .eh_frame_hdr sections. */
417 #if defined(HAVE_LD_EH_FRAME_HDR)
418 #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
419 #endif /* HAVE_LD_EH_FRAME */
420 #endif
421
422 #if defined(HAVE_LD_PIE)
423 #ifdef USE_GLD
424 /* Assert -z text by default to match Solaris ld. */
425 #define LD_PIE_SPEC "-pie %{!mimpure-text:-z text}"
426 #else
427 /* Solaris ld needs -z type=pie instead of -pie. */
428 #define LD_PIE_SPEC "-z type=pie %{mimpure-text:-z textoff}"
429 #endif
430 #else
431 /* Error out if some part of PIE support is missing. */
432 #define LINK_PIE_SPEC \
433 "%{no-pie:} %{pie:%e-pie is not supported in this configuration} "
434 #endif
435
436 /* collect2.cc can only parse GNU nm -n output. Solaris nm needs -png to
437 produce the same format. */
438 #define NM_FLAGS "-png"
439
440 #define STDC_0_IN_SYSTEM_HEADERS 1
441
442 /* Support Solaris-specific format checking for cmn_err. */
443 #define TARGET_N_FORMAT_TYPES 1
444 #define TARGET_FORMAT_TYPES solaris_format_types
445
446 /* #pragma init and #pragma fini are implemented on top of init and
447 fini attributes. */
448 #define SOLARIS_ATTRIBUTE_TABLE \
449 { "init", 0, 0, true, false, false, false, NULL, NULL }, \
450 { "fini", 0, 0, true, false, false, false, NULL, NULL }
451
452 /* Solaris-specific #pragmas are implemented on top of attributes. Hook in
453 the bits from config/sol2.cc. */
454 #define SUBTARGET_INSERT_ATTRIBUTES solaris_insert_attributes
455 #define SUBTARGET_ATTRIBUTE_TABLE SOLARIS_ATTRIBUTE_TABLE
456
457 /* Allow macro expansion in #pragma pack. */
458 #define HANDLE_PRAGMA_PACK_WITH_EXPANSION
459
460 #define TARGET_CXX_DECL_MANGLING_CONTEXT solaris_cxx_decl_mangling_context
461
462 /* Solaris/x86 as and gas support unquoted section names. */
463 #ifndef SECTION_NAME_FORMAT
464 #define SECTION_NAME_FORMAT "%s"
465 #endif
466
467 /* This is how to declare the size of a function. For Solaris, we output
468 any .init or .fini entries here. */
469 #undef ASM_DECLARE_FUNCTION_SIZE
470 #define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
471 do \
472 { \
473 if (!flag_inhibit_size_directive) \
474 ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
475 solaris_output_init_fini (FILE, DECL); \
476 } \
477 while (0)
478
479 #ifndef USE_GAS
480 #undef TARGET_ASM_ASSEMBLE_VISIBILITY
481 #define TARGET_ASM_ASSEMBLE_VISIBILITY solaris_assemble_visibility
482
483 #define AS_NEEDS_DASH_FOR_PIPED_INPUT
484
485 #endif
486 /* Solaris has an implementation of __enable_execute_stack. */
487 #define HAVE_ENABLE_EXECUTE_STACK
488
489 /* Static stack checking is supported by means of probes. */
490 #define STACK_CHECK_STATIC_BUILTIN 1
491
492 #define TARGET_POSIX_IO
493
494 /* Solaris 10 has the float and long double forms of math functions.
495 We redefine this hook so the version from elfos.h header won't be used. */
496 #undef TARGET_LIBC_HAS_FUNCTION
497 #define TARGET_LIBC_HAS_FUNCTION default_libc_has_function
498
499 extern GTY(()) tree solaris_pending_aligns;
500 extern GTY(()) tree solaris_pending_inits;
501 extern GTY(()) tree solaris_pending_finis;