* config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
[official-gcc.git] / gcc / config / i386 / unix.h
blobf7e38b48e9a17a53f8769dc6327aa4898d2c74c6
1 /* Definitions for Unix assembler syntax for the Intel 80386.
2 Copyright (C) 1988, 1994, 1999, 2000, 2001 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* This file defines the aspects of assembler syntax
22 that are the same for all the i386 Unix systems
23 (though they may differ in non-Unix systems). */
25 #define DEFAULT_ASSEMBLER_DIALECT 0
27 /* Define macro used to output shift-double opcodes when the shift
28 count is in %cl. Some assemblers require %cl as an argument;
29 some don't. This macro controls what to do: by default, don't
30 print %cl. */
31 #define SHIFT_DOUBLE_OMITS_COUNT 1
33 /* Define the syntax of pseudo-ops, labels and comments. */
35 /* String containing the assembler's comment-starter. */
37 #define ASM_COMMENT_START "/"
39 /* Output to assembler file text saying following lines
40 may contain character constants, extra white space, comments, etc. */
42 #define ASM_APP_ON "/APP\n"
44 /* Output to assembler file text saying following lines
45 no longer contain unusual constructs. */
47 #define ASM_APP_OFF "/NO_APP\n"
49 /* Output before read-only data. */
51 #define TEXT_SECTION_ASM_OP "\t.text"
53 /* Output before writable (initialized) data. */
55 #define DATA_SECTION_ASM_OP "\t.data"
57 /* Output before writable (uninitialized) data. */
59 #define BSS_SECTION_ASM_OP "\t.bss"
61 /* This is how to output a command to make the user-level label named NAME
62 defined for reference from other files. */
64 #define ASM_GLOBALIZE_LABEL(FILE,NAME) \
65 (fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE))
67 /* By default, target has a 80387, uses IEEE compatible arithmetic,
68 and returns float values in the 387. */
70 #define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS)
72 /* Floating-point return values come in the FP register. */
74 #define VALUE_REGNO(MODE) \
75 (GET_MODE_CLASS (MODE) == MODE_FLOAT \
76 && TARGET_FLOAT_RETURNS_IN_80387 ? FIRST_FLOAT_REG \
77 : (MODE) == TImode || VECTOR_MODE_P (MODE) ? FIRST_SSE_REG \
78 : 0)
80 /* Output code to add DELTA to the first argument, and then jump to FUNCTION.
81 Used for C++ multiple inheritance. */
82 #define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
83 x86_output_mi_thunk (FILE, DELTA, FUNCTION);