Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/i386/att.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 /* Definitions for AT&T assembler syntax for the Intel 80386. |
145 | 2 Copyright (C) 1988-2020 Free Software Foundation, Inc. |
0 | 3 |
4 This file is part of GCC. | |
5 | |
6 GCC is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 3, or (at your option) | |
9 any later version. | |
10 | |
11 GCC is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 Under Section 7 of GPL version 3, you are granted additional | |
17 permissions described in the GCC Runtime Library Exception, version | |
18 3.1, as published by the Free Software Foundation. | |
19 | |
20 You should have received a copy of the GNU General Public License and | |
21 a copy of the GCC Runtime Library Exception along with this program; | |
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
23 <http://www.gnu.org/licenses/>. */ | |
24 | |
25 | |
26 /* Define the syntax of instructions and addresses. */ | |
27 | |
28 /* Prefix for internally generated assembler labels. */ | |
29 #define LPREFIX ".L" | |
30 | |
31 /* Assembler pseudos to introduce constants of various size. */ | |
32 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
33 #define ASM_BYTE "\t.byte\t" |
0 | 34 #define ASM_SHORT "\t.value\t" |
35 #define ASM_LONG "\t.long\t" | |
36 #define ASM_QUAD "\t.quad\t" /* Should not be used for 32bit compilation. */ | |
37 | |
38 /* How to output an ASCII string constant. */ | |
39 | |
40 #undef ASM_OUTPUT_ASCII | |
41 #define ASM_OUTPUT_ASCII(FILE, PTR, SIZE) \ | |
42 do \ | |
43 { size_t i = 0, limit = (SIZE); \ | |
44 while (i < limit) \ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
45 { if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
46 fputs (ASM_BYTE, (FILE)); } \ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
47 else putc (',', (FILE)); \ |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
48 fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \ |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
49 putc ('\n', (FILE)); \ |
0 | 50 } while (0) |
51 | |
52 /* Output at beginning of assembler file. */ | |
53 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true | |
54 | |
55 /* This is how to output an assembler line | |
56 that says to advance the location counter | |
57 to a multiple of 2**LOG bytes. */ | |
58 | |
59 #define ASM_OUTPUT_ALIGN(FILE,LOG) \ | |
131 | 60 if ((LOG) != 0) fprintf ((FILE), "\t.align %d\n", 1 << (LOG)) |
0 | 61 |
62 /* This is how to output an assembler line | |
63 that says to advance the location counter by SIZE bytes. */ | |
64 | |
65 #undef ASM_OUTPUT_SKIP | |
66 #define ASM_OUTPUT_SKIP(FILE,SIZE) \ | |
67 fprintf ((FILE), "\t.set .,.+%u\n", (int)(SIZE)) | |
68 | |
69 /* Can't use ASM_OUTPUT_SKIP in text section; it doesn't leave 0s. */ | |
70 | |
71 #define ASM_NO_SKIP_IN_TEXT 1 | |
72 | |
73 /* Define the syntax of labels and symbol definitions/declarations. */ | |
74 | |
75 /* The prefix to add for compiler private assembler symbols. */ | |
76 #undef LOCAL_LABEL_PREFIX | |
77 #define LOCAL_LABEL_PREFIX "." | |
78 | |
79 /* This is how to store into the string BUF | |
80 the symbol_ref name of an internal numbered label where | |
81 PREFIX is the class of label and NUM is the number within the class. | |
82 This is suitable for output with `assemble_name'. */ | |
83 | |
84 #undef ASM_GENERATE_INTERNAL_LABEL | |
85 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
86 sprintf ((BUF), LOCAL_LABEL_PREFIX "%s%ld", (PREFIX), (long)(NUMBER)) |
0 | 87 |
88 /* The prefix to add to user-visible assembler symbols. */ | |
89 | |
90 #undef USER_LABEL_PREFIX | |
91 #define USER_LABEL_PREFIX "" |