1 /* Definitions of target machine for GNU compiler, for HP-UX.
2 Copyright (C) 1991, 1995, 1996, 2002 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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)
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.
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. */
21 #ifndef TARGET_DEFAULT
22 #define TARGET_DEFAULT 0
25 /* Make GCC agree with types.h. */
29 #define SIZE_TYPE "unsigned int"
30 #define PTRDIFF_TYPE "int"
32 #undef TARGET_OS_CPP_BUILTINS
33 #define TARGET_OS_CPP_BUILTINS() \
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) \
48 builtin_define ("_HPUX_SOURCE"); \
49 builtin_define ("_INCLUDE_LONGLONG"); \
53 builtin_define ("_HPUX_SOURCE"); \
54 if (preprocessing_trad_p ()) \
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"); \
66 builtin_define ("__STDC_EXT__"); \
69 builtin_define ("_SIO"); \
72 builtin_define ("__hp9000s700"); \
73 builtin_define ("__hp9000s700__"); \
74 builtin_define ("_WSIO"); \
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") },
84 /* Like the default, except no -lg. */
86 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"