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>
8 This file is part of GCC.
10 GCC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
15 GCC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING. If not, write to
22 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
23 Boston, MA 02110-1301, USA. */
25 #undef MINIX_TARGET_CPU_CPP_BUILTINS
26 #define MINIX_TARGET_CPU_CPP_BUILTINS() \
29 builtin_define ("__i386"); \
30 builtin_define_with_int_value ("_EM_WSIZE", 4); \
31 builtin_define_with_int_value ("_EM_PSIZE", 4); \
32 builtin_define_with_int_value ("_EM_SSIZE", 2); \
33 builtin_define_with_int_value ("_EM_LSIZE", 4); \
34 builtin_define_with_int_value ("_EM_FSIZE", 4); \
35 builtin_define_with_int_value ("_EM_DSIZE", 8); \
39 #define TARGET_VERSION fprintf (stderr, " (MINIX/i586 ELF)");
41 /* Override the default comment-starter of "/". */
42 #undef ASM_COMMENT_START
43 #define ASM_COMMENT_START "#"
46 #define ASM_APP_ON "#APP\n"
49 #define ASM_APP_OFF "#NO_APP\n"
51 #undef DBX_REGISTER_NUMBER
52 #define DBX_REGISTER_NUMBER(n) \
53 (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
55 #undef NO_PROFILE_COUNTERS
56 #define NO_PROFILE_COUNTERS 1
58 /* Tell final.c that we don't need a label passed to mcount. */
61 #define MCOUNT_NAME ".mcount"
63 /* Make gcc agree with <machine/ansi.h>. */
66 #define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
69 #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
71 #undef WCHAR_TYPE_SIZE
72 #define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD)
74 /* A C statement to output to the stdio stream FILE an assembler
75 command to advance the location counter to a multiple of 1<<LOG
76 bytes if it is within MAX_SKIP bytes.
78 This is used to align code labels according to Intel recommendations. */
80 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
81 #undef ASM_OUTPUT_MAX_SKIP_ALIGN
82 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP) \
84 if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
85 else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
89 /* Don't default to pcc-struct-return, we want to retain compatibility with
90 older gcc versions AND pcc-struct-return is nonreentrant.
91 (even though the SVR4 ABI for the i386 says that records and unions are
92 returned in memory). */
94 #undef DEFAULT_PCC_STRUCT_RETURN
95 #define DEFAULT_PCC_STRUCT_RETURN 0
97 #define SUBTARGET32_DEFAULT_CPU "i586"