1 /* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1 2 Copyright (C) 1991, 1995, 1996, 2002, 2003 Free Software Foundation, Inc. 3 Contributed by Tim Moore (moore@defmacro.cs.utah.edu) 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, 51 Franklin Street, Fifth Floor, 20 Boston, MA 02110-1301, USA. */ 21 22 #undef TARGET_OS_CPP_BUILTINS 23 #define TARGET_OS_CPP_BUILTINS() \ 24 do \ 25 { \ 26 if (TARGET_PA_11) \ 27 { \ 28 builtin_define_std ("hp700"); \ 29 builtin_define_std ("HP700"); \ 30 } \ 31 else \ 32 { \ 33 builtin_define_std ("hp800"); \ 34 builtin_define_std ("hp9k8"); \ 35 builtin_define_std ("hp9000s800"); \ 36 } \ 37 builtin_define_std ("BIT_MSF"); \ 38 builtin_define_std ("BYTE_MSF"); \ 39 builtin_define_std ("PARISC"); \ 40 builtin_define_std ("REVARGV"); \ 41 builtin_define_std ("hp9000"); \ 42 builtin_define ("__pa_risc"); \ 43 builtin_define_std ("parisc"); \ 44 builtin_define_std ("spectrum"); \ 45 builtin_define_std ("unix"); \ 46 builtin_assert ("system=mach"); \ 47 builtin_assert ("system=unix"); \ 48 } \ 49 while (0) 50 51 /* Don't default to pcc-struct-return, because gcc is the only compiler, and 52 we want to retain compatibility with older gcc versions. */ 53 #define DEFAULT_PCC_STRUCT_RETURN 0 54 55 /* OSF1 on the PA still uses 16bit wchar_t. */ 56 #undef WCHAR_TYPE 57 #undef WCHAR_TYPE_SIZE 58 59 #define WCHAR_TYPE "short unsigned int" 60 #define WCHAR_TYPE_SIZE 16 61 62 /* OSF1 wants to be different and use unsigned long as size_t. */ 63 #undef SIZE_TYPE 64 #define SIZE_TYPE "long unsigned int" 65