Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/i386/x86-64.h @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
0 | 1 /* OS independent definitions for AMD x86-64. |
145 | 2 Copyright (C) 2001-2020 Free Software Foundation, Inc. |
0 | 3 Contributed by Bo Thorsen <bo@suse.de>. |
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 Under Section 7 of GPL version 3, you are granted additional | |
18 permissions described in the GCC Runtime Library Exception, version | |
19 3.1, as published by the Free Software Foundation. | |
20 | |
21 You should have received a copy of the GNU General Public License and | |
22 a copy of the GCC Runtime Library Exception along with this program; | |
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
24 <http://www.gnu.org/licenses/>. */ | |
25 | |
26 #undef ASM_COMMENT_START | |
27 #define ASM_COMMENT_START "#" | |
28 | |
29 #undef DBX_REGISTER_NUMBER | |
30 #define DBX_REGISTER_NUMBER(n) \ | |
31 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) | |
32 | |
33 /* Output assembler code to FILE to call the profiler. */ | |
34 #define NO_PROFILE_COUNTERS 1 | |
35 | |
36 #undef MCOUNT_NAME | |
37 #define MCOUNT_NAME "mcount" | |
38 | |
39 #undef SIZE_TYPE | |
111 | 40 #define SIZE_TYPE (TARGET_LP64 ? "long unsigned int" : "unsigned int") |
0 | 41 |
42 #undef PTRDIFF_TYPE | |
111 | 43 #define PTRDIFF_TYPE (TARGET_LP64 ? "long int" : "int") |
0 | 44 |
45 #undef WCHAR_TYPE | |
46 #define WCHAR_TYPE "int" | |
47 | |
48 #undef WCHAR_TYPE_SIZE | |
49 #define WCHAR_TYPE_SIZE 32 | |
50 | |
51 #undef ASM_SPEC | |
111 | 52 #define ASM_SPEC "%{m16|m32:--32} %{m64:--64} %{mx32:--x32}" |
0 | 53 |
54 #undef ASM_OUTPUT_ALIGNED_BSS | |
55 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ | |
56 x86_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) | |
57 | |
111 | 58 #undef ASM_OUTPUT_ALIGNED_DECL_COMMON |
59 #define ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN) \ | |
60 x86_elf_aligned_decl_common (FILE, DECL, NAME, SIZE, ALIGN); | |
0 | 61 |
62 /* This is used to align code labels according to Intel recommendations. */ | |
63 | |
131 | 64 #define SUBALIGN_LOG 3 |
65 | |
0 | 66 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN |
67 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \ | |
68 do { \ | |
69 if ((LOG) != 0) { \ | |
131 | 70 if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1) \ |
71 fprintf ((FILE), "\t.p2align %d\n", (LOG)); \ | |
72 else \ | |
0 | 73 fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ |
74 } \ | |
75 } while (0) | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
76 #undef ASM_OUTPUT_MAX_SKIP_PAD |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
77 #define ASM_OUTPUT_MAX_SKIP_PAD(FILE, LOG, MAX_SKIP) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
78 if ((LOG) != 0) \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
79 { \ |
131 | 80 if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1) \ |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
81 fprintf ((FILE), "\t.p2align %d\n", (LOG)); \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
82 else \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
83 fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
84 } |
0 | 85 #endif |
86 | |
87 | |
88 /* i386 System V Release 4 uses DWARF debugging info. | |
89 x86-64 ABI specifies DWARF2. */ | |
90 | |
91 #define DWARF2_DEBUGGING_INFO 1 | |
92 #define DWARF2_UNWIND_INFO 1 | |
93 | |
94 #undef PREFERRED_DEBUGGING_TYPE | |
95 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG | |
96 | |
97 #undef TARGET_ASM_SELECT_SECTION | |
98 #define TARGET_ASM_SELECT_SECTION x86_64_elf_select_section | |
99 | |
100 #undef TARGET_ASM_UNIQUE_SECTION | |
101 #define TARGET_ASM_UNIQUE_SECTION x86_64_elf_unique_section | |
111 | 102 |
103 #undef TARGET_SECTION_TYPE_FLAGS | |
104 #define TARGET_SECTION_TYPE_FLAGS x86_64_elf_section_type_flags |