2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / pa / pa-64.h
bloba76a8aab8e17263bfee888059840e43b61f1b330
1 /* Definitions of target machine for GNU compiler, for HPs using the
2 64bit runtime model.
3 Copyright (C) 1999, 2000, 2003 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 /* The default sizes for basic datatypes provided by GCC are not
23 correct for the PA64 runtime architecture.
25 In PA64, basic types have the following sizes
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
40 Make GCC agree with types.h. */
41 #undef SIZE_TYPE
42 #define SIZE_TYPE "long unsigned int"
44 #undef PTRDIFF_TYPE
45 #define PTRDIFF_TYPE "long int"
47 #undef WCHAR_TYPE
48 #define WCHAR_TYPE "unsigned int"
50 #undef WCHAR_TYPE_SIZE
51 #define WCHAR_TYPE_SIZE 32
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 MAX_LONG_TYPE_SIZE
59 #define MAX_LONG_TYPE_SIZE 64
60 #undef LONG_TYPE_SIZE
61 #define LONG_TYPE_SIZE 64
62 #undef LONG_LONG_TYPE_SIZE
63 #define LONG_LONG_TYPE_SIZE 64
64 #undef FLOAT_TYPE_SIZE
65 #define FLOAT_TYPE_SIZE 32
66 #undef DOUBLE_TYPE_SIZE
67 #define DOUBLE_TYPE_SIZE 64
68 #undef LONG_DOUBLE_TYPE_SIZE
69 #define LONG_DOUBLE_TYPE_SIZE 128
71 /* Temporary until we figure out what to do with those *(&@$ 32bit
72 relocs which appear in stabs. */
73 #undef DBX_DEBUGGING_INFO
75 /* We want the compiler to select a suitable secondary memory location.
76 ?!? This may not work reliably. Keep an eye out for problems. */
77 #undef SECONDARY_MEMORY_NEEDED_RTX
80 /* ?!? This needs to be made compile-time selectable.
82 The PA64 runtime model has arguments that grow to higher addresses
83 (like most other targets). The older runtime model has arguments
84 that grow to lower addresses. What fun. */
85 #undef ARGS_GROW_DOWNWARD
86 #undef ARG_POINTER_REGNUM
87 #define ARG_POINTER_REGNUM 29
88 #undef STATIC_CHAIN_REGNUM
89 #define STATIC_CHAIN_REGNUM 31
91 /* If defined, a C expression which determines whether the default
92 implementation of va_arg will attempt to pad down before reading the
93 next argument, if that argument is smaller than its aligned space as
94 controlled by PARM_BOUNDARY. If this macro is not defined, all such
95 arguments are padded down when BYTES_BIG_ENDIAN is true. We don't
96 want aggregates padded down. */
98 #define PAD_VARARGS_DOWN (!AGGREGATE_TYPE_P (type))