* config/ia64/ia64.md: Define new attribute "empty".
[official-gcc.git] / gcc / config / pa / pa-hpux.h
blob31ac4cbbab686e881b9a119b8ea3f9ad64e79d13
1 /* Definitions of target machine for GNU compiler, for HP-UX.
2 Copyright (C) 1991, 1995, 1996, 2002, 2003, 2004
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #undef TARGET_DEFAULT
23 #define TARGET_DEFAULT MASK_BIG_SWITCH
25 /* Make GCC agree with types.h. */
26 #undef SIZE_TYPE
27 #undef PTRDIFF_TYPE
29 #define SIZE_TYPE "unsigned int"
30 #define PTRDIFF_TYPE "int"
32 #define LONG_DOUBLE_TYPE_SIZE 128
33 #define HPUX_LONG_DOUBLE_LIBRARY
34 #define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) ((MODE) == TFmode)
36 /* GCC always defines __STDC__. HP C++ compilers don't define it. This
37 causes trouble when sys/stdsyms.h is included. As a work around,
38 we define __STDC_EXT__. A similar situation exists with respect to
39 the definition of __cplusplus. We define _INCLUDE_LONGLONG
40 to prevent nlist.h from defining __STDC_32_MODE__ (no longlong
41 support). */
42 #undef TARGET_OS_CPP_BUILTINS
43 #define TARGET_OS_CPP_BUILTINS() \
44 do \
45 { \
46 builtin_assert ("system=hpux"); \
47 builtin_assert ("system=unix"); \
48 builtin_define ("__hp9000s800"); \
49 builtin_define ("__hp9000s800__"); \
50 builtin_define ("__hp9k8"); \
51 builtin_define ("__hp9k8__"); \
52 builtin_define ("__hpux"); \
53 builtin_define ("__hpux__"); \
54 builtin_define ("__unix"); \
55 builtin_define ("__unix__"); \
56 if (c_dialect_cxx ()) \
57 { \
58 builtin_define ("_HPUX_SOURCE"); \
59 builtin_define ("_INCLUDE_LONGLONG"); \
60 builtin_define ("__STDC_EXT__"); \
61 } \
62 else if (!flag_iso) \
63 { \
64 builtin_define ("_HPUX_SOURCE"); \
65 if (preprocessing_trad_p ()) \
66 { \
67 builtin_define ("hp9000s800"); \
68 builtin_define ("hp9k8"); \
69 builtin_define ("hppa"); \
70 builtin_define ("hpux"); \
71 builtin_define ("unix"); \
72 builtin_define ("__CLASSIC_C__"); \
73 builtin_define ("_PWB"); \
74 builtin_define ("PWB"); \
75 } \
76 else \
77 builtin_define ("__STDC_EXT__"); \
78 } \
79 if (TARGET_SIO) \
80 builtin_define ("_SIO"); \
81 else \
82 { \
83 builtin_define ("__hp9000s700"); \
84 builtin_define ("__hp9000s700__"); \
85 builtin_define ("_WSIO"); \
86 } \
87 } \
88 while (0)
90 #undef SUBTARGET_SWITCHES
91 #define SUBTARGET_SWITCHES \
92 { "sio", MASK_SIO, N_("Generate cpp defines for server IO") }, \
93 { "wsio", -MASK_SIO, N_("Generate cpp defines for workstation IO") },
95 /* Like the default, except no -lg. */
96 #undef LIB_SPEC
97 #define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}"
99 #undef LINK_SPEC
100 #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11)
101 #define LINK_SPEC \
102 "%{!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}"
103 #else
104 #define LINK_SPEC \
105 "%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
106 #endif
108 /* hpux8 and later have C++ compatible include files, so do not
109 pretend they are `extern "C"'. */
110 #define NO_IMPLICIT_EXTERN_C
112 /* hpux11 and earlier don't have fputc_unlocked, so we must inhibit the
113 transformation of fputs_unlocked and fprintf_unlocked to fputc_unlocked. */
114 #define DONT_HAVE_FPUTC_UNLOCKED
116 /* We want the entry value of SP saved in the frame marker for
117 compatibility with the HP-UX unwind library. */
118 #undef TARGET_HPUX_UNWIND_LIBRARY
119 #define TARGET_HPUX_UNWIND_LIBRARY 1