OSDN Git Service

* pa/pa-hpux.h, pa/pa-hpux10.h, pa/pa-hpux9.h, pa/pa-osf.h, pa.h,
[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, 1995, 1996 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, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 #undef TARGET_DEFAULT
22 #define TARGET_DEFAULT 0
23
24 /* Make GCC agree with types.h.  */
25 #undef SIZE_TYPE
26 #undef PTRDIFF_TYPE
27
28 #define SIZE_TYPE "unsigned int"
29 #define PTRDIFF_TYPE "int"
30
31 /* Like the default, except no -lg.  */
32 #undef LIB_SPEC
33 #define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}"
34
35 #undef CPP_PREDEFINES
36 #define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)"
37
38 #undef LINK_SPEC
39 #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11)
40 #define LINK_SPEC \
41   "%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
42 #else
43 #define LINK_SPEC \
44   "%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
45 #endif
46
47 /* hpux8 and later have C++ compatible include files, so do not
48    pretend they are `extern "C"'.  */
49 #define NO_IMPLICIT_EXTERN_C