]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/pa/pa-linux.h
1 /* Definitions for PA_RISC with ELF format
2 Copyright (C) 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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)
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.
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. */
21 /* FIXME - this doesn't seem to be used anywhere */
22 #define LINUX_DEFAULT_ELF
25 #define SIZE_TYPE "unsigned int"
28 #define PTRDIFF_TYPE "int"
31 #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
34 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}\
35 %{msnake:-D_PA_RISC1_1}\
36 %{mpa-risc-1-1:-D_PA_RISC1_1}"
39 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} -lmilli"
41 /* How to renumber registers for dbx and gdb.
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.
47 Registers 0 - 31 remain unchanged.
49 Registers 32 - 87 are mapped to 72 - 127
51 Register 88 is mapped to 32. */
53 #define DBX_REGISTER_NUMBER(REGNO) \
54 ((REGNO) <= 31 ? (REGNO) : \
55 ((REGNO) > 31 && (REGNO) <= 87 ? (REGNO) + 40 : 32))