freebsd-skq/contrib/gcc/config/i386/sco4.h
peter d4691e641b Import of unmodified (but trimmed) gcc-2.7.2. The bigger parts of the
non-i386, non-unix, and generatable files have been trimmed, but can easily
be added in later if needed.

gcc-2.7.2.1 will follow shortly, it's a very small delta to this and it's
handy to have both available for reference for such little cost.

The freebsd-specific changes will then be committed, and once the dust has
settled, the bmakefiles will be committed to use this code.
1996-09-18 05:35:50 +00:00

87 lines
2.6 KiB
C

/* Definitions for Intel 386 running SCO Unix System V 3.2 Version 4.
Written by Chip Salzenberg.
Copyright (C) 1992, 1994 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Mostly it's like earlier SCO UNIX. */
#include "i386/sco.h"
/* Use crt1.o as a startup file and crtn.o as a closing file. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
"%{scoxpg3:%{p:mcrt1X.o%s}%{!p:crt1X.o%s}} \
%{!scoxpg3:\
%{posix:%{p:mcrt1P.o%s}%{!p:crt1P.o%s}} \
%{!posix:\
%{ansi:%{p:mcrt1A.o%s}%{!p:crt1A.o%s}} \
%{!ansi:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}}} \
crtbegin.o%s"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
"crtend.o%s \
%{scoxpg3:crtnX.o%s} \
%{!scoxpg3:\
%{posix:crtnP.o%s} \
%{!posix:\
%{ansi:crtnA.o%s} \
%{!ansi:crtn.o%s}}}"
/* Library spec. */
#undef LIB_SPEC
#define LIB_SPEC \
"%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} \
%{scoxpg3:-lcX -lcP -lcA} \
%{!scoxpg3:\
%{posix:-lcP -lcA} \
%{!posix:\
%{ansi:-lcA} \
%{!ansi:%{scointl:-lintl} -lc}}}"
/* Macros, macros everywhere:
Specify predefined symbols in preprocessor. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \
"-Asystem(unix) -Asystem(svr3) -Acpu(i386) -Amachine(i386)"
#undef CPP_SPEC
#define CPP_SPEC \
"-D_i386 -D_M_I386 -D_M_I86 -D_M_I86SM -D_M_SDATA -D_M_STEXT \
-D_unix -D_M_UNIX -D_M_XENIX \
-D_M_SYS5 -D_M_SYSV -D_M_SYS3 -D_M_SYSIII \
-D_M_COFF -D_M_BITFIELDS -D_M_WORDSWAP \
%{scoxpg3:-D_XOPEN_SOURCE -D_STRICT_NAMES} \
%{!scoxpg3:%{posix:-D_POSIX_SOURCE -D_STRICT_NAMES}} \
%{!scoxpg3:%{!posix:\
%{ansi:-D_STRICT_NAMES}%{!ansi:\
-Di386 -DM_I386 -DM_I86 -DM_I86SM -DM_SDATA -DM_STEXT \
-Dunix -DM_UNIX -DM_XENIX \
-DM_SYS5 -DM_SYSV -DM_SYS3 -DM_SYSIII \
-DM_COFF -DM_BITFIELDS -DM_WORDSWAP \
%{scointl:-D_M_INTERNAT -DM_INTERNAT} \
%{traditional:-D_KR -D_SVID -D_NO_PROTOTYPE}}}}"
/* The system headers are C++-aware. */
#define NO_IMPLICIT_EXTERN_C