Daily bump.
[official-gcc.git] / gcc / config / arm / linux-tgas.h
blob5ca370a4021d34b0c1fea9ec8df6c6c79c93c851
1 /* Definitions of target machine for GNU compiler.
2 Thumb Linux-based GNU systems version.
3 Copyright (C) 1999 Free Software Foundation, Inc.
4 Contributed by Russell King <rmk92@ecs.soton.ac.uk>.
6 This file is part of GNU CC.
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.
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.
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 /* We are using GAS, so stabs should work. */
24 #ifndef DBX_DEBUGGING_INFO
25 #define DBX_DEBUGGING_INFO 1
26 #endif
28 /* This is how we tell the assembler that a symbol is weak.
29 GAS always supports weak symbols. */
30 #define ASM_WEAKEN_LABEL(FILE, NAME) \
31 do \
32 { \
33 fputs ("\t.weak\t", FILE); \
34 assemble_name (FILE, NAME); \
35 fputc ('\n', FILE); \
36 } \
37 while (0)
39 /* This is used in ASM_FILE_START */
40 #undef ARM_OS_NAME
41 #define ARM_OS_NAME "Linux"
43 /* Unsigned chars produces much better code than signed. */
44 #define DEFAULT_SIGNED_CHAR 0
46 #undef SUBTARGET_CPP_SPEC
47 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}"
49 #undef SIZE_TYPE
50 #define SIZE_TYPE "unsigned int"
52 #undef PTRDIFF_TYPE
53 #define PTRDIFF_TYPE "int"
55 #undef WCHAR_TYPE
56 #define WCHAR_TYPE "long int"
58 #undef WCHAR_TYPE_SIZE
59 #define WCHAR_TYPE_SIZE BITS_PER_WORD
61 /* Emit code to set up a trampoline and synchronise the caches. */
62 #undef INITIALIZE_TRAMPOLINE
63 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
64 { \
65 emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 8)), \
66 CXT); \
67 emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 12)), \
68 FNADDR); \
69 emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__clear_cache"), \
70 0, VOIDmode, 2, TRAMP, Pmode, \
71 plus_constant (TRAMP, TRAMPOLINE_SIZE), Pmode); \
74 #if 0
75 /* Clear the instruction cache from `beg' to `end'. This makes an
76 inline system call to SYS_cacheflush. */
77 #define CLEAR_INSN_CACHE(BEG, END) \
78 { \
79 register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
80 register unsigned long _end __asm ("a2") = (unsigned long) (END); \
81 register unsigned long _flg __asm ("a3") = 0; \
82 __asm __volatile ("swi 0x9f0002"); \
84 #endif