OSDN Git Service

config:
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-linux.h
1 /* Definitions for PA_RISC with ELF format
2    Copyright (C) 1999 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* FIXME - this doesn't seem to be used anywhere */
22 #define LINUX_DEFAULT_ELF
23
24 #undef SIZE_TYPE
25 #define SIZE_TYPE "unsigned int"
26
27 #undef PTRDIFF_TYPE
28 #define PTRDIFF_TYPE "int"
29
30 #undef CPP_PREDEFINES
31 #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
32
33 #undef CPP_SPEC
34 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}\
35  %{msnake:-D_PA_RISC1_1}\
36  %{mpa-risc-1-1:-D_PA_RISC1_1}"
37
38 #undef  LIB_SPEC
39 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} -lmilli"
40
41 /* How to renumber registers for dbx and gdb.
42
43    It is entirely possible linux will use a different numbering scheme.
44    Until we know for sure, it's the same as hpux, osf & bsd, but we're
45    ready if it needs to be different.
46
47    Registers 0  - 31 remain unchanged.
48
49    Registers 32 - 87 are mapped to 72 - 127
50
51    Register 88 is mapped to 32.  */
52
53 #define DBX_REGISTER_NUMBER(REGNO) \
54   ((REGNO) <= 31 ? (REGNO) :                                            \
55    ((REGNO) > 31 && (REGNO) <= 87 ? (REGNO) + 40 : 32))