1/* Definitions of target machine for GNU compiler, for HPs using the
2   64bit runtime model.
3   Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GCC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING.  If not, write to
19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA.  */
21
22/* The default sizes for basic datatypes provided by GCC are not
23   correct for the PA64 runtime architecture.
24
25   In PA64, basic types have the following sizes
26
27     char	1 byte
28     short	2 bytes
29     int	4 bytes
30     long	8 bytes
31     long long	8 bytes
32     pointer	8 bytes
33     float	4 bytes
34     double	8 bytes
35     long double 16 bytes
36     size_t	8 bytes
37     ptrdiff_t	8 bytes
38     wchar	4 bytes
39
40  Make GCC agree with types.h.  */
41#undef SIZE_TYPE
42#define SIZE_TYPE "long unsigned int"
43
44#undef PTRDIFF_TYPE
45#define PTRDIFF_TYPE "long int"
46
47#undef WCHAR_TYPE
48#define WCHAR_TYPE "unsigned int"
49
50#undef WCHAR_TYPE_SIZE
51#define WCHAR_TYPE_SIZE 32
52
53/* If it is not listed here, then the default selected by GCC is OK.  */
54#undef SHORT_TYPE_SIZE
55#define SHORT_TYPE_SIZE 16
56#undef INT_TYPE_SIZE
57#define INT_TYPE_SIZE 32
58#undef LONG_TYPE_SIZE
59#define LONG_TYPE_SIZE 64
60#undef LONG_LONG_TYPE_SIZE
61#define LONG_LONG_TYPE_SIZE 64
62#undef FLOAT_TYPE_SIZE
63#define FLOAT_TYPE_SIZE 32
64#undef DOUBLE_TYPE_SIZE
65#define DOUBLE_TYPE_SIZE 64
66#undef LONG_DOUBLE_TYPE_SIZE
67#define LONG_DOUBLE_TYPE_SIZE 128
68
69/* Temporary until we figure out what to do with those *(&@$ 32bit
70   relocs which appear in stabs.  */
71#undef DBX_DEBUGGING_INFO
72
73/* ?!? This needs to be made compile-time selectable.
74
75   The PA64 runtime model has arguments that grow to higher addresses
76   (like most other targets).  The older runtime model has arguments
77   that grow to lower addresses.  What fun.  */
78#undef ARGS_GROW_DOWNWARD
79
80/* If defined, a C expression which determines whether the default
81   implementation of va_arg will attempt to pad down before reading the
82   next argument, if that argument is smaller than its aligned space as
83   controlled by PARM_BOUNDARY.  If this macro is not defined, all such
84   arguments are padded down when BYTES_BIG_ENDIAN is true.  We don't
85   want aggregates padded down.  */
86
87#define PAD_VARARGS_DOWN (!AGGREGATE_TYPE_P (type))
88