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