import of gcc-2.8
[official-gcc.git] / gcc / config / i386 / linux-oldld.h
blob9c6c21f79d4744375eeb3b0c856b39b9a3c689f9
1 /* Definitions for Intel 386 running Linux-based GNU systems with pre-BFD
2 a.out linkers.
3 Copyright (C) 1995, 1997 Free Software Foundation, Inc.
4 Contributed by Michael Meissner (meissner@cygnus.com)
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* This is tested by i386/gas.h. */
24 #define YES_UNDERSCORES
26 #include <i386/gstabs.h>
27 #include <linux-aout.h> /* some common stuff */
29 /* Specify predefined symbols in preprocessor. */
31 #undef CPP_PREDEFINES
32 #define CPP_PREDEFINES "-Dunix -Dlinux -Asystem(posix)"
34 #undef CPP_SPEC
35 #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
37 #undef SIZE_TYPE
38 #define SIZE_TYPE "unsigned int"
40 #undef PTRDIFF_TYPE
41 #define PTRDIFF_TYPE "int"
43 #undef WCHAR_TYPE
44 #define WCHAR_TYPE "long int"
46 #undef WCHAR_TYPE_SIZE
47 #define WCHAR_TYPE_SIZE BITS_PER_WORD
49 /* Don't default to pcc-struct-return, because gcc is the only compiler,
50 and we want to retain compatibility with older gcc versions. */
51 #define DEFAULT_PCC_STRUCT_RETURN 0
53 #undef LIB_SPEC
55 #if 1
56 /* We no longer link with libc_p.a or libg.a by default. If you
57 want to profile or debug the GNU/Linux C library, please add
58 lc_p or -ggdb to LDFLAGS at the link time, respectively. */
59 #define LIB_SPEC \
60 "%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}"
61 #else
62 #define LIB_SPEC \
63 "%{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
64 %{!p:%{!pg:%{!g*:-lc} %{g*:-lg -static}}}"
65 #endif
68 #undef LINK_SPEC
69 #define LINK_SPEC ""
71 /* Get perform_* macros to build libgcc.a. */
72 #include <i386/perform.h>