]>
gcc.gnu.org Git - gcc.git/blob - gcc/config/i386/sun.h
1 /* Definitions for Intel 386 running SunOS 4.0.
2 Copyright (C) 1988 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)
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
23 /* Use the Sun assembler syntax. */
27 /* By default, target has a 80387. */
29 #define TARGET_DEFAULT 1
31 /* Use crt0.o as a startup file. */
33 #define STARTFILE_SPEC \
34 "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
36 #define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\
38 /* That last item is just to prevent a spurious error. */
41 #define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"
43 /* Extra switches to give the assembler. */
45 #define ASM_SPEC "-i386"
47 /* Specify predefined symbols in preprocessor. */
49 #define CPP_PREDEFINES "-Dunix -Di386 -Dsun386 -Dsun"
51 /* Allow #sccs in preprocessor. */
53 #define SCCS_DIRECTIVE
55 /* Output #ident as a .ident. */
57 #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
59 /* We don't want to output SDB debugging information. */
61 #undef SDB_DEBUGGING_INFO
63 /* We want to output DBX debugging information. */
65 #define DBX_DEBUGGING_INFO
67 /* Implicit library calls should use memcpy, not bcopy, etc. */
69 #define TARGET_MEM_FUNCTIONS
71 /* Force structure alignment to the type used for a bitfield. */
73 #define PCC_BITFIELD_TYPE_MATTERS 1
75 /* Define how to find the value returned by a function.
76 VALTYPE is the data type of the value (as a tree).
77 If the precise function being called is known, FUNC is its FUNCTION_DECL;
78 otherwise, FUNC is 0. */
80 #define VALUE_REGNO(MODE) \
81 (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
83 /* 1 if N is a possible register number for a function value. */
85 #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
87 /* This is partly guess. */
89 #undef DBX_REGISTER_NUMBER
90 #define DBX_REGISTER_NUMBER(n) \
91 ((n) == 0 ? 11 : (n) == 1 ? 9 : (n) == 2 ? 10 : (n) == 3 ? 8 \
92 : (n) == 4 ? 5 : (n) == 5 ? 4 : (n) == 6 ? 6 : (n))
94 /* Every debugger symbol must be in the text section.
95 Otherwise the assembler or the linker screws up. */
97 #define DEBUG_SYMS_TEXT
This page took 0.045402 seconds and 5 git commands to generate.