OSDN Git Service

107f06ccbf62de58e18d2f12c1b2253ae61df2e3
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / linux-oldld.h
1 /* Definitions for Intel 386 running Linux with pre-BFD a.out linkers
2    Copyright (C) 1995 Free Software Foundation, Inc.
3    Contributed by Michael Meissner (meissner@cygnus.com)
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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21 /* This is tested by i386/gas.h.  */
22 #define YES_UNDERSCORES
23
24 #include <i386/gstabs.h>
25 #include <linux-aout.h> /* some common stuff */
26
27 /* Specify predefined symbols in preprocessor.  */
28
29 #undef CPP_PREDEFINES
30 #define CPP_PREDEFINES "-Dunix -Di386 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386)"
31
32 #undef CPP_SPEC
33 #if TARGET_CPU_DEFAULT == 2
34 #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
35 #else
36 #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
37 #endif
38
39 #undef SIZE_TYPE
40 #define SIZE_TYPE "unsigned int"
41
42 #undef PTRDIFF_TYPE
43 #define PTRDIFF_TYPE "int"
44
45 #undef WCHAR_TYPE
46 #define WCHAR_TYPE "long int"
47
48 #undef WCHAR_TYPE_SIZE
49 #define WCHAR_TYPE_SIZE BITS_PER_WORD
50
51 /* Don't default to pcc-struct-return, because gcc is the only compiler,
52    and we want to retain compatibility with older gcc versions.  */
53 #define DEFAULT_PCC_STRUCT_RETURN 0
54
55 #undef LIB_SPEC
56
57 #if 1
58 /* We no longer link with libc_p.a or libg.a by default. If you
59  * want to profile or debug the Linux C library, please add
60  * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
61  */
62 #define LIB_SPEC \
63 "%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}"
64 #else    
65 #define LIB_SPEC \
66 "%{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
67  %{!p:%{!pg:%{!g*:-lc} %{g*:-lg -static}}}" 
68 #endif
69
70 \f
71 #undef LINK_SPEC
72 #define LINK_SPEC ""
73
74 /* Get perform_* macros to build libgcc.a.  */
75 #include <i386/perform.h>