OSDN Git Service

Shared library support.
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-hpux.h
1 /* Definitions of target machine for GNU compiler, for HP-UX.
2    Copyright (C) 1991 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20 #ifndef TARGET_DEFAULT
21 #define TARGET_DEFAULT 0
22 #endif
23
24 #include "pa/pa.h"
25
26 /* Make GCC agree with types.h.  */
27 #undef SIZE_TYPE
28 #undef PTRDIFF_TYPE
29
30 #define SIZE_TYPE "unsigned int"
31 #define PTRDIFF_TYPE "int"
32
33 /* HPUX doesn't use any debugging format that GCC knows about.  */
34 #undef DBX_DEBUGGING_INFO
35 #undef DEFAULT_GDB_EXTENSIONS
36 #define DEFAULT_GDB_EXTENSIONS 0
37
38 /* Like the default, except no -lg.  */
39 #define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}"
40
41 #undef CPP_PREDEFINES
42 #define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)"
43
44 #undef LINK_SPEC
45 #define LINK_SPEC \
46   "%{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
47
48 /* hpux8 and later have C++ compatable include files, so do not
49    pretend they are `extern "C"'.  */
50 #define NO_IMPLICIT_EXTERN_C