xref: /minix/external/gpl3/gcc/files/i386-minix.h (revision 0a6a1f1d)
1 /* Definitions for Intel 386 running MINIX with ELF format
2    Copyright (C) 1996, 2000, 2002, 2004 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 for MINIX by Lionel Sambuc <lionel@minix3.org>
8 
9    This file is part of GCC.
10 
11    GCC is free software; you can redistribute it and/or modify it
12    under the terms of the GNU General Public License as published
13    by the Free Software Foundation; either version 2, or (at your
14    option) any later version.
15 
16    GCC is distributed in the hope that it will be useful, but WITHOUT
17    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
19    License for more details.
20 
21    You should have received a copy of the GNU General Public License
22    along with GCC; see the file COPYING.  If not, write to the
23    Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
24    MA 02110-1301, USA.  */
25 
26 /* Define the actual types of some ANSI-mandated types.
27    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
28    c-common.c, and config/<arch>/<arch>.h. */
29 #undef  SIZE_TYPE
30 #define SIZE_TYPE	(TARGET_64BIT ? "long unsigned int" : "unsigned int")
31 
32 #undef  PTRDIFF_TYPE
33 #define PTRDIFF_TYPE	(TARGET_64BIT ? "long int" : "int")
34 
35 /* Override the default comment-starter of "/".  */
36 #undef  ASM_COMMENT_START
37 #define ASM_COMMENT_START "#"
38 
39 #undef  ASM_APP_ON
40 #define ASM_APP_ON "#APP\n"
41 
42 #undef  ASM_APP_OFF
43 #define ASM_APP_OFF "#NO_APP\n"
44 
45 #undef  DBX_REGISTER_NUMBER
46 #define DBX_REGISTER_NUMBER(n) \
47   (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
48 
49 #undef  NO_PROFILE_COUNTERS
50 #define NO_PROFILE_COUNTERS	1
51 
52 /* Tell final.c that we don't need a label passed to mcount.  */
53 #undef  MCOUNT_NAME
54 #define MCOUNT_NAME ".mcount"
55 
56 /* A C statement to output to the stdio stream FILE an assembler
57    command to advance the location counter to a multiple of 1<<LOG
58    bytes if it is within MAX_SKIP bytes.
59 
60    This is used to align code labels according to Intel recommendations.  */
61 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
62 #undef  ASM_OUTPUT_MAX_SKIP_ALIGN
63 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP)			\
64   if ((LOG) != 0) {							\
65     if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));	\
66     else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));	\
67   }
68 #endif
69 
70 #undef SUBTARGET32_DEFAULT_CPU
71 #define SUBTARGET32_DEFAULT_CPU "i586"
72 
73 #undef X87_ENABLE_ARITH
74 #define X87_ENABLE_ARITH(MODE) \
75   (flag_excess_precision == EXCESS_PRECISION_FAST || (MODE) == DFmode)
76