]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gcc/config/i386/linux-aout.h
This commit was generated by cvs2svn to compensate for changes in r147341,
[FreeBSD/FreeBSD.git] / contrib / gcc / config / i386 / linux-aout.h
1 /* Definitions for Intel 386 running Linux-based GNU systems using a.out.
2    Copyright (C) 1992, 1994, 1995, 1997, 1998, 2002
3    Free Software Foundation, Inc.
4    Contributed by H.J. Lu (hjl@nynexst.com)
5
6 This file is part of GCC.
7
8 GCC 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.
12
13 GCC 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.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22
23 #undef ASM_COMMENT_START
24 #define ASM_COMMENT_START "#"
25
26 #define TARGET_OS_CPP_BUILTINS()                \
27   do                                            \
28     {                                           \
29         LINUX_TARGET_OS_CPP_BUILTINS();         \
30         if (flag_pic)                           \
31           {                                     \
32             builtin_define ("__PIC__");         \
33             builtin_define ("__pic__");         \
34           }                                     \
35     }                                           \
36   while (0)
37
38 #undef CPP_SPEC
39 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
40
41 #undef SIZE_TYPE
42 #define SIZE_TYPE "unsigned int"
43
44 #undef PTRDIFF_TYPE
45 #define PTRDIFF_TYPE "int"
46
47 #undef WCHAR_TYPE
48 #define WCHAR_TYPE "long int"
49
50 #undef WCHAR_TYPE_SIZE
51 #define WCHAR_TYPE_SIZE BITS_PER_WORD
52
53 /* Don't default to pcc-struct-return, because gcc is the only compiler,
54    and we want to retain compatibility with older gcc versions.  */
55 #define DEFAULT_PCC_STRUCT_RETURN 0
56
57 #undef LIB_SPEC
58
59 #if 1
60 /* We no longer link with libc_p.a or libg.a by default. If you
61    want to profile or debug the GNU/Linux C library, please add
62    -lc_p or -ggdb to LDFLAGS at the link time, respectively.  */
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 \f
72 #undef LINK_SPEC
73 #define LINK_SPEC       "-m i386linux"