xref: /minix3/external/gpl3/gcc/files/arm-minix.h (revision b1c4ba4ab66acbca4eb1bab1b49a15e96feef93e)
1 /* Definitions for StrongARM running FreeBSD using the ELF format
2    Copyright (C) 2001, 2004, 2007 Free Software Foundation, Inc.
3    Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4 
5    This file is part of GCC.
6 
7    GCC is free software; you can redistribute it and/or modify it
8    under the terms of the GNU General Public License as published
9    by the Free Software Foundation; either version 3, or (at your
10    option) any later version.
11 
12    GCC is distributed in the hope that it will be useful, but WITHOUT
13    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15    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 COPYING3.  If not see
19    <http://www.gnu.org/licenses/>.  */
20 
21 
22 #undef MINIX_TARGET_CPU_CPP_BUILTINS
23 #define MINIX_TARGET_CPU_CPP_BUILTINS()	\
24   do					\
25     {					\
26       TARGET_BPABI_CPP_BUILTINS();	\
27     }					\
28   while (0)
29 
30 /************************[  Target stuff  ]***********************************/
31 
32 /* Define the actual types of some ANSI-mandated types.
33    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
34    c-common.c, and config/<arch>/<arch>.h.  */
35 
36 /* arm.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
37 
38 #undef  SIZE_TYPE
39 #define SIZE_TYPE	"unsigned int"
40 
41 #undef  PTRDIFF_TYPE
42 #define PTRDIFF_TYPE	"int"
43 
44 #undef WCHAR_TYPE
45 #define WCHAR_TYPE	"int"
46 
47 /* Little endian by default */
48 #undef TARGET_ENDIAN_DEFAULT
49 #define TARGET_ENDIAN_DEFAULT 0
50 
51 /* Use by default the new abi and calling standard */
52 #undef ARM_DEFAULT_ABI
53 #define ARM_DEFAULT_ABI ARM_ABI_AAPCS
54 
55 /* Fixed-sized enum by default (-fno-short-enums) */
56 #undef CC1_SPEC
57 #define CC1_SPEC                                                \
58 	"%{!fshort-enums:%{!fno-short-enums:-fno-short-enums}} "
59 
60 /* This defaults us to little-endian.  */
61 #ifndef TARGET_ENDIAN_DEFAULT
62 #define TARGET_ENDIAN_DEFAULT 0
63 #endif
64 
65 #undef  SUBTARGET_CPU_DEFAULT
66 #define SUBTARGET_CPU_DEFAULT	TARGET_CPU_cortexa8
67 
68 #undef TARGET_VERSION
69 #define TARGET_VERSION fputs (" (MINIX/arm ELF EABI)", stderr);
70