]>
gcc.gnu.org Git - gcc.git/blob - gcc/config/i386/osfrose.h
1 /* Definitions of target machine for GNU compiler.
2 Encore Multimax (OSF/1 with OSF/rose) version.
3 Copyright (C) 1991 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
25 /* Use a more friendly abort which prints internal compiler error,
26 rather than just dumping core. */
29 #define abort fancy_abort
32 /* Prefix that appears before all global/static identifiers, except for
35 #define IDENTIFIER_PREFIX "_"
37 /* Suffix that appears after all global/static identifiers, except for
40 #define IDENTIFIER_SUFFIX ""
42 /* Change default predefines. */
46 #define CPP_PREDEFINES "-DOSF -DOSF1 -Dunix -Di386"
51 #define CPP_SPEC "%{.S: -D__LANGUAGE_ASSEMBLY__ \
52 -D_LANGUAGE_ASSEMBLY \
53 %{!ansi:-DLANGUAGE_ASSEMBLY}} \
54 %{!.S: -D__LANGUAGE_C__ \
56 %{!ansi:-DLANGUAGE_C}}"
71 #define LINK_SPEC "%{v*: -v} \
72 %{pic-none: -noshrlib} %{noshrlib} \
73 %{!pic-none: -warn_nopic} \
80 /* For now, force static libraries instead of shared, but do so that
81 does not use -noshrlib, since the old linker does not provide it. */
83 #define LIB_SPEC "%{!pic-none: %{!pic-lib: -L/usr/ccs/lib }} -lc"
93 #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
99 #define MACHINE_TYPE ((!TARGET_486) ? "80386 running OSF/1 with OSF/rose objects" : \
100 "80486 running OSF/1 with OSF/rose objects")
103 #ifdef MD_EXEC_PREFIX
104 #undef MD_EXEC_PREFIX
106 #define MD_EXEC_PREFIX "/usr/ccs/gcc/"
108 #ifdef MD_STARTFILE_PREFIX
109 #undef MD_STARTFILE_PREFIX
111 #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
114 /* Tell final.c we don't need a label passed to mcount. */
115 #define NO_PROFILE_DATA
117 #undef FUNCTION_PROFILER
118 #define FUNCTION_PROFILER(FILE, LABELNO) fprintf (FILE, "\tcall _mcount\n")
120 /* Tell collect that the object format is OSF/rose. */
121 #define OBJECT_FORMAT_ROSE
124 /* Defines to be able to build gnulib with GCC. */
126 #define perform_udivsi3(a,b) \
128 register int dx asm("dx"); \
129 register int ax asm("ax"); \
133 asm ("divl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b), "d" (dx)); \
137 #define perform_divsi3(a,b) \
139 register int dx asm("dx"); \
140 register int ax asm("ax"); \
143 asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b)); \
147 #define perform_umodsi3(a,b) \
149 register int dx asm("dx"); \
150 register int ax asm("ax"); \
154 asm ("divl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b), "d" (dx)); \
158 #define perform_modsi3(a,b) \
160 register int dx asm("dx"); \
161 register int ax asm("ax"); \
164 asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b)); \
168 #define perform_fix_truncdfsi2(a) \
170 auto unsigned short ostatus; \
171 auto unsigned short nstatus; \
174 &ostatus; /* guarantee these land in memory */ \
178 asm volatile ("fnstcw %0" : "=m" (ostatus)); \
179 nstatus = ostatus | 0x0c00; \
180 asm volatile ("fldcw %0" : /* no outputs */ : "m" (nstatus)); \
181 asm volatile ("fldl %0" : /* no outputs */ : "m" (a)); \
182 asm volatile ("fistpl %0" : "=m" (ret)); \
183 asm volatile ("fldcw %0" : /* no outputs */ : "m" (nstatus)); \
This page took 0.050775 seconds and 6 git commands to generate.