xref: /openbsd/gnu/usr.bin/gcc/gcc/config/arm/semiaof.h (revision 73471bf0)
1 /* Definitions of target machine for GNU compiler.  ARM on semi-hosted platform
2    AOF Syntax assembler.
3    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
4    Contributed by Richard Earnshaw (richard.earnshaw@armltd.co.uk)
5 
6 This file is part of GNU CC.
7 
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12 
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22 
23 #define TARGET_OS_CPP_BUILTINS()		\
24     do {					\
25 	builtin_define_std ("arm");		\
26 	builtin_define_std ("semi");		\
27     } while (0)
28 
29 #define ASM_SPEC "%{g -g} -arch 4 \
30 -apcs 3%{mapcs-32:/32bit}%{mapcs-26:/26bit}%{!mapcs-26:%{!macps-32:/32bit}}"
31 
32 #define LIB_SPEC "%{Eb: armlib_h.32b%s}%{!Eb: armlib_h.32l%s}"
33 
34 #define TARGET_VERSION fputs (" (ARM/semi-hosted)", stderr);
35 
36 #define TARGET_DEFAULT ARM_FLAG_APCS_32
37 
38 /* The Norcroft C library defines size_t as "unsigned int" */
39 #define SIZE_TYPE "unsigned int"
40 
41 #undef CPP_APCS_PC_DEFAULT_SPEC
42 #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
43