Merge branch 'vendor/EXPAT'
[dragonfly.git] / contrib / gcc-4.4 / gcc / config / i386 / dragonfly.h
1 /* Definitions for Intel 386 running DragonFly with ELF format
2    Copyright (C) 1996, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
3    Contributed by Eric Youngdale.
4    Modified for stabs-in-ELF by H.J. Lu.
5    Adapted from GNU/Linux version by John Polstra.
6    Continued development by David O'Brien <obrien@freebsd.org>
7    Adapted from the FreeBSD version.
8
9
10 This file is part of GCC.
11
12 GCC is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 3, or (at your option)
15 any later version.
16
17 GCC is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with GCC; see the file COPYING3.  If not see
24 <http://www.gnu.org/licenses/>.  */
25
26
27 #define TARGET_VERSION fprintf (stderr, " (i386 DragonFly/ELF)");
28
29 /* Override the default comment-starter of "/".  */
30 #undef  ASM_COMMENT_START
31 #define ASM_COMMENT_START "#"
32
33 #undef  ASM_APP_ON
34 #define ASM_APP_ON "#APP\n"
35
36 #undef  ASM_APP_OFF
37 #define ASM_APP_OFF "#NO_APP\n"
38
39 #undef  DBX_REGISTER_NUMBER
40 #define DBX_REGISTER_NUMBER(n) \
41   (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
42
43 #undef  NO_PROFILE_COUNTERS
44 #define NO_PROFILE_COUNTERS     1
45
46 /* Tell final.c that we don't need a label passed to mcount.  */
47
48 #undef  MCOUNT_NAME
49 #define MCOUNT_NAME ".mcount"
50
51 /* Make gcc agree with <machine/ansi.h>.  */
52
53 #undef  SIZE_TYPE
54 #define SIZE_TYPE       "unsigned int"
55  
56 #undef  PTRDIFF_TYPE
57 #define PTRDIFF_TYPE    "int"
58   
59 #undef  WCHAR_TYPE_SIZE
60 #define WCHAR_TYPE_SIZE BITS_PER_WORD
61
62 #undef  SUBTARGET_EXTRA_SPECS   /* i386.h bogusly defines it.  */
63 #define SUBTARGET_EXTRA_SPECS \
64   { "dfbsd_dynamic_linker", DFBSD_DYNAMIC_LINKER }
65     
66
67 /* A C statement to output to the stdio stream FILE an assembler
68    command to advance the location counter to a multiple of 1<<LOG
69    bytes if it is within MAX_SKIP bytes.
70
71    This is used to align code labels according to Intel recommendations.  */
72
73 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
74 #undef  ASM_OUTPUT_MAX_SKIP_ALIGN
75 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP)                                  \
76   if ((LOG) != 0) {                                                                                                             \
77     if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));    \
78     else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));    \
79   }
80 #endif
81
82 /* Don't default to pcc-struct-return, we want to retain compatibility with
83    older gcc versions AND pcc-struct-return is nonreentrant.
84    (even though the SVR4 ABI for the i386 says that records and unions are
85    returned in memory).  */
86
87 #undef  DEFAULT_PCC_STRUCT_RETURN
88 #define DEFAULT_PCC_STRUCT_RETURN 0
89
90 /* DragonFly sets the rounding precision of the FPU to 53 bits.  Let the
91    compiler get the contents of <float.h> and std::numeric_limits correct.  */
92 #undef TARGET_96_ROUND_53_LONG_DOUBLE
93 #define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT)