1 /* Definitions of target machine for GNU compiler. Sun 2 running Sunos 4.
2 Copyright (C) 1987, 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 /* Define __HAVE_SKY__ in preprocessor, according to the -m flags.
24 Also inform the program which CPU this is for. */
29 #define PTRDIFF_TYPE "int"
31 #define SIZE_TYPE "int"
33 #define WCHAR_TYPE "short unsigned int"
34 #undef WCHAR_TYPE_SIZE
35 #define WCHAR_TYPE_SIZE 16
37 #if TARGET_DEFAULT & 0200
39 /* -msky is the default */
41 "%{!msoft-float:-D__HAVE_SKY__}\
42 %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
46 /* -msoft-float is the default */
48 "%{msky:-D__HAVE_SKY__ }\
49 %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
53 /* STARTFILE_SPEC to include sun floating point initialization
54 This is necessary (tr: Sun does it) for the sky routines.
55 I'm not sure what would happen below if people gave contradictory
56 arguments (eg. -msoft-float -mfpa) */
60 #if TARGET_DEFAULT & 0200
61 /* -msky is the default */
62 #define STARTFILE_SPEC \
63 "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
64 %{msoft-float:Fcrt1.o%s} \
65 %{!msoft-float:Scrt1.o%s}"
67 /* -msoft-float is the default */
68 #define STARTFILE_SPEC \
69 "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
74 /* Specify library to handle `-a' basic block profiling.
75 Control choice of libm.a (if user says -lm)
76 based on fp arith default and options. */
80 #if TARGET_DEFAULT & 0200
81 /* -msky is the default */
82 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
83 %{a:/usr/lib/bb_link.o -lc} %{g:-lg} \
84 %{msoft-float:-L/usr/lib/fsoft} \
85 %{!msoft_float:-L/usr/lib/fsky}"
87 /* -msoft-float is the default */
88 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
89 %{a:/usr/lib/bb_link.o -lc} %{g:-lg} \
90 %{!msky:-L/usr/lib/fsoft} \
91 %{msky:-L/usr/lib/ffpa}"
96 "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic}"
98 #undef ASM_OUTPUT_DOUBLE
99 #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
100 (REAL_VALUE_ISINF ((VALUE)) \
101 ? fprintf (FILE, "\t.double 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
102 : REAL_VALUE_MINUS_ZERO ((VALUE)) \
103 ? fprintf (FILE, "\t.long 0x80000000,0\n") \
104 : fprintf (FILE, "\t.double 0r%.20e\n", (VALUE)))
106 /* This is how to output an assembler line defining a `float' constant. */
108 #undef ASM_OUTPUT_FLOAT
109 #define ASM_OUTPUT_FLOAT(FILE,VALUE) \
110 (REAL_VALUE_ISINF ((VALUE)) \
111 ? fprintf (FILE, "\t.single 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
112 : REAL_VALUE_MINUS_ZERO ((VALUE)) \
113 ? fprintf (FILE, "\t.long 0x80000000\n") \
114 : fprintf (FILE, "\t.single 0r%.20e\n", (VALUE)))
116 #undef ASM_OUTPUT_FLOAT_OPERAND
117 #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
118 (REAL_VALUE_ISINF ((VALUE)) \
119 ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
120 : REAL_VALUE_MINUS_ZERO ((VALUE)) \
121 ? fprintf (FILE, "#0r-0.0") \
122 : fprintf (FILE, "#0r%.9g", (VALUE)))
124 #undef ASM_OUTPUT_DOUBLE_OPERAND
125 #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
126 (REAL_VALUE_ISINF ((VALUE)) \
127 ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
128 : REAL_VALUE_MINUS_ZERO ((VALUE)) \
129 ? fprintf (FILE, "#0r-0.0") \
130 : fprintf (FILE, "#0r%.20g", (VALUE)))