OSDN Git Service

* pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-64.h
1 /* Definitions of target machine for GNU compiler, for HPs using the
2    64bit runtime model.
3    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC 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.
11
12 GNU CC 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.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, 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 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 /* This should be 128, but until we work out the ABI for the 128bit
69    FP codes supplied by HP we'll keep it at 64 bits.  */
70 #undef LONG_DOUBLE_TYPE_SIZE
71 #define LONG_DOUBLE_TYPE_SIZE 64
72
73 /* Temporary until we figure out what to do with those *(&@$ 32bit
74    relocs which appear in stabs.  */
75 #undef DBX_DEBUGGING_INFO
76
77 /* We want the compiler to select a suitable secondary memory location.
78    ?!? This may not work reliably.  Keep an eye out for problems.  */
79 #undef SECONDARY_MEMORY_NEEDED_RTX
80
81
82 /* ?!? This needs to be made compile-time selectable.
83
84    The PA64 runtime model has arguments that grow to higher addresses
85    (like most other targets).  The older runtime model has arguments
86    that grow to lower addresses.  What fun.  */
87 #undef ARGS_GROW_DOWNWARD
88 #undef ARG_POINTER_REGNUM
89 #define ARG_POINTER_REGNUM 29
90 #undef STATIC_CHAIN_REGNUM
91 #define STATIC_CHAIN_REGNUM 31
92
93 /* Nonzero if we do not know how to pass TYPE solely in registers.  */
94 #define MUST_PASS_IN_STACK(MODE,TYPE) \
95   ((TYPE) != 0                                                  \
96    && (TREE_CODE (TYPE_SIZE (TYPE)) != INTEGER_CST              \
97        || TREE_ADDRESSABLE (TYPE)))