|
|
1.1 root 1: /* Definitions for Intel 386 running Linux
2: Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
3: Contributed by H.J. Lu ([email protected])
4:
5: This file is part of GNU CC.
6:
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)
10: any later version.
11:
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.
16:
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, 59 Temple Place - Suite 330,
20: Boston, MA 02111-1307, USA. */
21:
22: /* This is tested by i386/gas.h. */
23: #define YES_UNDERSCORES
24:
25: #include <i386/gstabs.h>
26: #include <linux-aout.h> /* some common stuff */
27:
28: /* Specify predefined symbols in preprocessor. */
29:
30: #undef CPP_PREDEFINES
31: #define CPP_PREDEFINES "-Dunix -Di386 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386)"
32:
33: #undef CPP_SPEC
34: #if TARGET_CPU_DEFAULT == 2
35: #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
36: #else
37: #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
38: #endif
39:
40: #undef SIZE_TYPE
41: #define SIZE_TYPE "unsigned int"
42:
43: #undef PTRDIFF_TYPE
44: #define PTRDIFF_TYPE "int"
45:
46: #undef WCHAR_TYPE
47: #define WCHAR_TYPE "long int"
48:
49: #undef WCHAR_TYPE_SIZE
50: #define WCHAR_TYPE_SIZE BITS_PER_WORD
51:
52: /* Don't default to pcc-struct-return, because gcc is the only compiler,
53: and we want to retain compatibility with older gcc versions. */
54: #define DEFAULT_PCC_STRUCT_RETURN 0
55:
56: #undef LIB_SPEC
57:
58: #if 1
59: /* We no longer link with libc_p.a or libg.a by default. If you
60: * want to profile or debug the Linux C library, please add
61: * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
62: */
63: #define LIB_SPEC \
64: "%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}"
65: #else
66: #define LIB_SPEC \
67: "%{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
68: %{!p:%{!pg:%{!g*:-lc} %{g*:-lg -static}}}"
69: #endif
70:
71:
72: #undef LINK_SPEC
73: #define LINK_SPEC "-m i386linux"
74:
75: /* Get perform_* macros to build libgcc.a. */
76: #include "i386/perform.h"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.