Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/gnu-user64.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Definitions for AMD x86-64 using GNU userspace. | 1 /* Definitions for AMD x86-64 using GNU userspace. |
2 Copyright (C) 2001-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2001-2018 Free Software Foundation, Inc. |
3 Contributed by Jan Hubicka <jh@suse.cz>, based on linux.h. | 3 Contributed by Jan Hubicka <jh@suse.cz>, based on linux.h. |
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 |
48 | 48 |
49 #undef ASM_SPEC | 49 #undef ASM_SPEC |
50 #define ASM_SPEC "%{" SPEC_32 ":--32} \ | 50 #define ASM_SPEC "%{" SPEC_32 ":--32} \ |
51 %{" SPEC_64 ":--64} \ | 51 %{" SPEC_64 ":--64} \ |
52 %{" SPEC_X32 ":--x32} \ | 52 %{" SPEC_X32 ":--x32} \ |
53 %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}" | 53 %{msse2avx:%{!mavx:-msse2avx}}" |
54 | 54 |
55 #define GNU_USER_TARGET_LINK_SPEC \ | 55 #define GNU_USER_TARGET_LINK_SPEC \ |
56 "%{" SPEC_64 ":-m " GNU_USER_LINK_EMULATION64 "} \ | 56 "%{" SPEC_64 ":-m " GNU_USER_LINK_EMULATION64 "} \ |
57 %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \ | 57 %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \ |
58 %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \ | 58 %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \ |
84 x32 glibc provides it in %fs:0x18. | 84 x32 glibc provides it in %fs:0x18. |
85 x86_64 glibc provides it in %fs:0x28. */ | 85 x86_64 glibc provides it in %fs:0x28. */ |
86 #define TARGET_THREAD_SSP_OFFSET \ | 86 #define TARGET_THREAD_SSP_OFFSET \ |
87 (TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14) | 87 (TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14) |
88 | 88 |
89 /* We steal the last transactional memory word. */ | 89 /* i386 glibc provides __private_ss in %gs:0x30. |
90 x32 glibc provides it in %fs:0x40. | |
91 x86_64 glibc provides it in %fs:0x70. */ | |
90 #define TARGET_THREAD_SPLIT_STACK_OFFSET \ | 92 #define TARGET_THREAD_SPLIT_STACK_OFFSET \ |
91 (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30) | 93 (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30) |
92 #endif | 94 #endif |
93 | 95 |
94 #undef WCHAR_TYPE | 96 #undef WCHAR_TYPE |