Replace occurances of "GNU CC" with "GCC" and reformat as appropriate.
[official-gcc.git] / gcc / config / arm / linux-gas.h
blob37d788aeb9a60d4d0541386a2e97bb59ccf39341
1 /* Definitions of target machine for GNU compiler.
2 ARM Linux-based GNU systems version.
3 Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 Contributed by Russell King <rmk92@ecs.soton.ac.uk>.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 2, or (at your
11 option) any later version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* This is how we tell the assembler that a symbol is weak.
24 GAS always supports weak symbols. */
26 /* This is used in ASM_FILE_START. */
27 #undef ARM_OS_NAME
28 #define ARM_OS_NAME "Linux"
30 /* Unsigned chars produces much better code than signed. */
31 #define DEFAULT_SIGNED_CHAR 0
33 #undef SUBTARGET_CPP_SPEC
34 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}"
36 #undef SIZE_TYPE
37 #define SIZE_TYPE "unsigned int"
39 #undef PTRDIFF_TYPE
40 #define PTRDIFF_TYPE "int"
42 #undef WCHAR_TYPE
43 #define WCHAR_TYPE "long int"
45 #undef WCHAR_TYPE_SIZE
46 #define WCHAR_TYPE_SIZE BITS_PER_WORD
48 /* Emit code to set up a trampoline and synchronize the caches. */
49 #undef INITIALIZE_TRAMPOLINE
50 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
51 { \
52 emit_move_insn (gen_rtx (MEM, SImode, plus_constant ((TRAMP), 8)), \
53 (CXT)); \
54 emit_move_insn (gen_rtx (MEM, SImode, plus_constant ((TRAMP), 12)), \
55 (FNADDR)); \
56 emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__clear_cache"), \
57 0, VOIDmode, 2, TRAMP, Pmode, \
58 plus_constant (TRAMP, TRAMPOLINE_SIZE), Pmode); \
61 /* Clear the instruction cache from `beg' to `end'. This makes an
62 inline system call to SYS_cacheflush. */
63 #define CLEAR_INSN_CACHE(BEG, END) \
64 { \
65 register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
66 register unsigned long _end __asm ("a2") = (unsigned long) (END); \
67 register unsigned long _flg __asm ("a3") = 0; \
68 __asm __volatile ("swi 0x9f0002 @ sys_cacheflush" \
69 : "=r" (_beg) \
70 : "0" (_beg), "r" (_end), "r" (_flg)); \