OSDN Git Service

* config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
[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, 2003, 2004 Free Software Foundation, Inc.
4
5 This file is part of GCC.
6
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.
11
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.
16
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.  */
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 /* We want the compiler to select a suitable secondary memory location.
74    ?!? This may not work reliably.  Keep an eye out for problems.  */
75 #undef SECONDARY_MEMORY_NEEDED_RTX
76
77
78 /* ?!? This needs to be made compile-time selectable.
79
80    The PA64 runtime model has arguments that grow to higher addresses
81    (like most other targets).  The older runtime model has arguments
82    that grow to lower addresses.  What fun.  */
83 #undef ARGS_GROW_DOWNWARD
84 #undef ARG_POINTER_REGNUM
85 #define ARG_POINTER_REGNUM 29
86 #undef STATIC_CHAIN_REGNUM
87 #define STATIC_CHAIN_REGNUM 31
88
89 /* If defined, a C expression which determines whether the default
90    implementation of va_arg will attempt to pad down before reading the
91    next argument, if that argument is smaller than its aligned space as
92    controlled by PARM_BOUNDARY.  If this macro is not defined, all such
93    arguments are padded down when BYTES_BIG_ENDIAN is true.  We don't
94    want aggregates padded down.  */
95
96 #define PAD_VARARGS_DOWN (!AGGREGATE_TYPE_P (type))