1 /* Definitions for Intel 386 running DragonFly with ELF format
2 Copyright (C) 1996, 2000, 2002, 2004, 2007, 2010, 2011
3 Free Software Foundation, Inc.
4 Contributed by Eric Youngdale.
5 Modified for stabs-in-ELF by H.J. Lu.
6 Adapted from GNU/Linux version by John Polstra.
7 Continued development by David O'Brien <obrien@freebsd.org>
9 This file is part of GCC.
11 GCC is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3, or (at your option)
16 GCC is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with GCC; see the file COPYING3. If not see
23 <http://www.gnu.org/licenses/>. */
26 /* Override the default comment-starter of "/". */
27 #undef ASM_COMMENT_START
28 #define ASM_COMMENT_START "#"
31 #define ASM_APP_ON "#APP\n"
34 #define ASM_APP_OFF "#NO_APP\n"
36 #undef DBX_REGISTER_NUMBER
37 #define DBX_REGISTER_NUMBER(n) \
38 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
40 #undef NO_PROFILE_COUNTERS
41 #define NO_PROFILE_COUNTERS 1
43 /* Tell final.c that we don't need a label passed to mcount. */
46 #define MCOUNT_NAME ".mcount"
48 /* Make gcc agree with <machine/ansi.h>. */
51 #define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
54 #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
56 #undef WCHAR_TYPE_SIZE
57 #define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD)
59 #undef SUBTARGET_EXTRA_SPECS /* i386.h bogusly defines it. */
60 #define SUBTARGET_EXTRA_SPECS \
61 { "dfbsd_dynamic_linker", DFBSD_DYNAMIC_LINKER }
64 /* A C statement to output to the stdio stream FILE an assembler
65 command to advance the location counter to a multiple of 1<<LOG
66 bytes if it is within MAX_SKIP bytes.
68 This is used to align code labels according to Intel recommendations. */
70 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
71 #undef ASM_OUTPUT_MAX_SKIP_ALIGN
72 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP) \
74 if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
75 else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
79 /* Don't default to pcc-struct-return, we want to retain compatibility with
80 older gcc versions AND pcc-struct-return is nonreentrant.
81 (even though the SVR4 ABI for the i386 says that records and unions are
82 returned in memory). */
84 #undef DEFAULT_PCC_STRUCT_RETURN
85 #define DEFAULT_PCC_STRUCT_RETURN 0
87 /* DragonFly sets the rounding precision of the FPU to 53 bits. Let the
88 compiler get the contents of <float.h> and std::numeric_limits correct. */
89 #undef TARGET_96_ROUND_53_LONG_DOUBLE
90 #define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT)
92 /* Put all *tf routines in libgcc. */
93 #undef LIBGCC2_HAS_TF_MODE
94 #define LIBGCC2_HAS_TF_MODE 1
95 #define LIBGCC2_TF_CEXT q
98 /* Static stack checking is supported by means of probes. */
99 #define STACK_CHECK_STATIC_BUILTIN 1
101 /* Support for i386 has been removed from DragonFly for several releases */
102 #define SUBTARGET32_DEFAULT_CPU "i486"
104 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack