Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/sol2.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Target definitions for GCC for Intel 80386 running Solaris 2 | 1 /* Target definitions for GCC for Intel 80386 running Solaris 2 |
2 Copyright (C) 1993-2018 Free Software Foundation, Inc. | 2 Copyright (C) 1993-2020 Free Software Foundation, Inc. |
3 Contributed by Fred Fish (fnf@cygnus.com). | 3 Contributed by Fred Fish (fnf@cygnus.com). |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
24 /* 32-bit Solaris/x86 only guarantees 4-byte stack alignment as required by | 24 /* 32-bit Solaris/x86 only guarantees 4-byte stack alignment as required by |
25 the i386 psABI, so realign it as necessary for SSE instructions. */ | 25 the i386 psABI, so realign it as necessary for SSE instructions. */ |
26 #undef STACK_REALIGN_DEFAULT | 26 #undef STACK_REALIGN_DEFAULT |
27 #define STACK_REALIGN_DEFAULT (TARGET_64BIT ? 0 : 1) | 27 #define STACK_REALIGN_DEFAULT (TARGET_64BIT ? 0 : 1) |
28 | 28 |
29 /* Old versions of the Solaris assembler can not handle the difference of | 29 /* Old versions of the Solaris assembler cannot handle the difference of |
30 labels in different sections, so force DW_EH_PE_datarel if so. */ | 30 labels in different sections, so force DW_EH_PE_datarel if so. */ |
31 #ifndef HAVE_AS_IX86_DIFF_SECT_DELTA | 31 #ifndef HAVE_AS_IX86_DIFF_SECT_DELTA |
32 #undef ASM_PREFERRED_EH_DATA_FORMAT | 32 #undef ASM_PREFERRED_EH_DATA_FORMAT |
33 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \ | 33 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \ |
34 (flag_pic ? ((GLOBAL ? DW_EH_PE_indirect : 0) \ | 34 (flag_pic ? ((GLOBAL ? DW_EH_PE_indirect : 0) \ |
52 #define TARGET_SUN_TLS 1 | 52 #define TARGET_SUN_TLS 1 |
53 | 53 |
54 #undef CPP_SPEC | 54 #undef CPP_SPEC |
55 #define CPP_SPEC "%(cpp_subtarget)" | 55 #define CPP_SPEC "%(cpp_subtarget)" |
56 | 56 |
57 #undef CC1_SPEC | |
58 #define CC1_SPEC "%(cc1_cpu) " ASAN_CC1_SPEC \ | |
59 " %{mx32:%e-mx32 is not supported on Solaris}" | |
60 | |
57 /* GNU as understands --32 and --64, but the native Solaris | 61 /* GNU as understands --32 and --64, but the native Solaris |
58 assembler requires -xarch=generic or -xarch=generic64 instead. */ | 62 assembler requires -xarch=generic or -xarch=generic64 instead. */ |
59 #ifdef USE_GAS | 63 #ifdef USE_GAS |
60 #define ASM_CPU32_DEFAULT_SPEC "--32" | 64 #define ASM_CPU32_DEFAULT_SPEC "--32" |
61 #define ASM_CPU64_DEFAULT_SPEC "--64" | 65 #define ASM_CPU64_DEFAULT_SPEC "--64" |
111 /* Register the Solaris-specific #pragma directives. */ | 115 /* Register the Solaris-specific #pragma directives. */ |
112 #define REGISTER_SUBTARGET_PRAGMAS() solaris_register_pragmas () | 116 #define REGISTER_SUBTARGET_PRAGMAS() solaris_register_pragmas () |
113 | 117 |
114 #undef LOCAL_LABEL_PREFIX | 118 #undef LOCAL_LABEL_PREFIX |
115 #define LOCAL_LABEL_PREFIX "." | 119 #define LOCAL_LABEL_PREFIX "." |
116 | |
117 /* The Solaris 10 FCS as doesn't accept "#" comments, while later versions | |
118 do. */ | |
119 #undef ASM_COMMENT_START | |
120 #define ASM_COMMENT_START "/" | |
121 | 120 |
122 /* The 32-bit Solaris assembler does not support .quad. Do not use it. */ | 121 /* The 32-bit Solaris assembler does not support .quad. Do not use it. */ |
123 #ifndef HAVE_AS_IX86_QUAD | 122 #ifndef HAVE_AS_IX86_QUAD |
124 #undef ASM_QUAD | 123 #undef ASM_QUAD |
125 #endif | 124 #endif |
239 | 238 |
240 #ifndef USE_GAS | 239 #ifndef USE_GAS |
241 #define LARGECOMM_SECTION_ASM_OP "\t.lbcomm\t" | 240 #define LARGECOMM_SECTION_ASM_OP "\t.lbcomm\t" |
242 #endif | 241 #endif |
243 | 242 |
244 #define USE_IX86_FRAME_POINTER 1 | 243 /* -fsanitize=address is currently only supported for 32-bit. */ |
245 #define USE_X86_64_FRAME_POINTER 1 | 244 #define ASAN_REJECT_SPEC \ |
245 DEF_ARCH64_SPEC("%e-fsanitize=address is not supported in this configuration") | |
246 | 246 |
247 #undef NO_PROFILE_COUNTERS | 247 #undef NO_PROFILE_COUNTERS |
248 | 248 |
249 #undef MCOUNT_NAME | 249 #undef MCOUNT_NAME |
250 #define MCOUNT_NAME "_mcount" | 250 #define MCOUNT_NAME "_mcount" |