annotate gcc/config/i386/dragonfly.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Definitions for Intel 386 running DragonFly with ELF format
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 2014-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by John Marino <gnugcc@marino.st>
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
10 any later version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
15 GNU General Public License for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 Under Section 7 of GPL version 3, you are granted additional
kono
parents:
diff changeset
18 permissions described in the GCC Runtime Library Exception, version
kono
parents:
diff changeset
19 3.1, as published by the Free Software Foundation.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 You should have received a copy of the GNU General Public License and
kono
parents:
diff changeset
22 a copy of the GCC Runtime Library Exception along with this program;
kono
parents:
diff changeset
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
kono
parents:
diff changeset
24 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* Override the default comment-starter of "/". */
kono
parents:
diff changeset
28 #undef ASM_COMMENT_START
kono
parents:
diff changeset
29 #define ASM_COMMENT_START "#"
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 #undef ASM_APP_ON
kono
parents:
diff changeset
32 #define ASM_APP_ON "#APP\n"
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 #undef ASM_APP_OFF
kono
parents:
diff changeset
35 #define ASM_APP_OFF "#NO_APP\n"
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 #undef DBX_REGISTER_NUMBER
kono
parents:
diff changeset
38 #define DBX_REGISTER_NUMBER(n) \
kono
parents:
diff changeset
39 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 #undef NO_PROFILE_COUNTERS
kono
parents:
diff changeset
42 #define NO_PROFILE_COUNTERS 1
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 /* Tell final.c that we don't need a label passed to mcount. */
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 #undef MCOUNT_NAME
kono
parents:
diff changeset
47 #define MCOUNT_NAME ".mcount"
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 /* Make gcc agree with <machine/ansi.h>. */
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 #undef SIZE_TYPE
kono
parents:
diff changeset
52 #define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 #undef PTRDIFF_TYPE
kono
parents:
diff changeset
55 #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 #undef WCHAR_TYPE_SIZE
kono
parents:
diff changeset
58 #define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD)
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 #undef SUBTARGET_EXTRA_SPECS /* i386.h bogusly defines it. */
kono
parents:
diff changeset
61 #define SUBTARGET_EXTRA_SPECS \
kono
parents:
diff changeset
62 { "dfbsd_dynamic_linker", DFBSD_DYNAMIC_LINKER }
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 /* A C statement to output to the stdio stream FILE an assembler
kono
parents:
diff changeset
65 command to advance the location counter to a multiple of 1<<LOG
kono
parents:
diff changeset
66 bytes if it is within MAX_SKIP bytes.
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 This is used to align code labels according to Intel recommendations. */
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
kono
parents:
diff changeset
71 #undef ASM_OUTPUT_MAX_SKIP_ALIGN
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
72 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP) \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
73 if ((LOG) != 0) { \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
74 if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1) \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
75 fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
76 else \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
77 fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
111
kono
parents:
diff changeset
78 }
kono
parents:
diff changeset
79 #endif
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 /* Don't default to pcc-struct-return, we want to retain compatibility with
kono
parents:
diff changeset
82 older gcc versions AND pcc-struct-return is nonreentrant.
kono
parents:
diff changeset
83 (even though the SVR4 ABI for the i386 says that records and unions are
kono
parents:
diff changeset
84 returned in memory). */
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 #undef DEFAULT_PCC_STRUCT_RETURN
kono
parents:
diff changeset
87 #define DEFAULT_PCC_STRUCT_RETURN 0
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 /* DragonFly sets the rounding precision of the FPU to 53 bits. Let the
kono
parents:
diff changeset
90 compiler get the contents of <float.h> and std::numeric_limits correct. */
kono
parents:
diff changeset
91 #undef TARGET_96_ROUND_53_LONG_DOUBLE
kono
parents:
diff changeset
92 #define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT)
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 /* Static stack checking is supported by means of probes. */
kono
parents:
diff changeset
95 #define STACK_CHECK_STATIC_BUILTIN 1
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 /* Support for i386 was removed from DragonFly in 2007 */
kono
parents:
diff changeset
98 #define SUBTARGET32_DEFAULT_CPU "i486"
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack