OSDN Git Service

* pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-hpux7.h
1 /* Definitions of target machine for GNU compiler, for HP-UX.
2    Copyright (C) 1991, 1995, 1996, 2002 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 #ifndef TARGET_DEFAULT
22 #define TARGET_DEFAULT 0
23 #endif
24
25 /* Make GCC agree with types.h.  */
26 #undef SIZE_TYPE
27 #undef PTRDIFF_TYPE
28
29 #define SIZE_TYPE "unsigned int"
30 #define PTRDIFF_TYPE "int"
31
32 #undef TARGET_OS_CPP_BUILTINS
33 #define TARGET_OS_CPP_BUILTINS()                                \
34   do                                                            \
35     {                                                           \
36         builtin_assert ("system=hpux");                         \
37         builtin_assert ("system=unix");                         \
38         builtin_define ("__hp9000s800");                        \
39         builtin_define ("__hp9000s800__");                      \
40         builtin_define ("__hp9k8");                             \
41         builtin_define ("__hp9k8__");                           \
42         builtin_define ("__hpux");                              \
43         builtin_define ("__hpux__");                            \
44         builtin_define ("__unix");                              \
45         builtin_define ("__unix__");                            \
46         if (c_language == clk_cplusplus)                        \
47           {                                                     \
48             builtin_define ("_HPUX_SOURCE");                    \
49             builtin_define ("_INCLUDE_LONGLONG");               \
50           }                                                     \
51         else if (!flag_iso)                                     \
52           {                                                     \
53             builtin_define ("_HPUX_SOURCE");                    \
54             if (preprocessing_trad_p ())                        \
55               {                                                 \
56                 builtin_define ("hp9000s800");                  \
57                 builtin_define ("hp9k8");                       \
58                 builtin_define ("hppa");                        \
59                 builtin_define ("hpux");                        \
60                 builtin_define ("unix");                        \
61                 builtin_define ("__CLASSIC_C__");               \
62                 builtin_define ("_PWB");                        \
63                 builtin_define ("PWB");                         \
64               }                                                 \
65             else                                                \
66               builtin_define ("__STDC_EXT__");                  \
67           }                                                     \
68         if (TARGET_SIO)                                         \
69           builtin_define ("_SIO");                              \
70         else                                                    \
71           {                                                     \
72             builtin_define ("__hp9000s700");                    \
73             builtin_define ("__hp9000s700__");                  \
74             builtin_define ("_WSIO");                           \
75           }                                                     \
76     }                                                           \
77   while (0)
78
79 #undef SUBTARGET_SWITCHES
80 #define SUBTARGET_SWITCHES \
81   { "sio",       MASK_SIO,      N_("Generate cpp defines for server IO") }, \
82   { "wsio",     -MASK_SIO,      N_("Generate cpp defines for workstation IO") },
83
84 /* Like the default, except no -lg.  */
85 #undef LIB_SPEC
86 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"