Appleid arm-elf contribution from Philip Blundell and merged with Catherine
[official-gcc.git] / gcc / config / arm / linux-gas.h
blob72567f3915831b167e890d84ba42da2abb07b7c2
1 /* Definitions of target machine for GNU compiler.
2 ARM Linux-based GNU systems version.
3 Copyright (C) 1997, 1998 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. */
24 * We are using GAS, so stabs should work.
27 #ifndef DBX_DEBUGGING_INFO
28 #define DBX_DEBUGGING_INFO 1
29 #endif
32 * This is how we tell the assembler that a symbol is weak. GAS always
33 * supports weak symbols.
36 #define ASM_WEAKEN_LABEL(FILE,NAME) \
37 do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
38 fputc ('\n', FILE); } while (0)
40 /* This is used in ASM_FILE_START */
41 #undef ARM_OS_NAME
42 #define ARM_OS_NAME "Linux"
44 /* Unsigned chars produces much better code than signed. */
45 #define DEFAULT_SIGNED_CHAR 0
47 #undef SUBTARGET_CPP_SPEC
48 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}"
50 #undef SIZE_TYPE
51 #define SIZE_TYPE "unsigned int"
53 #undef PTRDIFF_TYPE
54 #define PTRDIFF_TYPE "int"
56 #undef WCHAR_TYPE
57 #define WCHAR_TYPE "long int"
59 #undef WCHAR_TYPE_SIZE
60 #define WCHAR_TYPE_SIZE BITS_PER_WORD
62 #if 0 /* not yet */
64 /* Clear the instruction cache from `beg' to `end'. This makes an
65 inline system call to SYS_cacheflush. The arguments are as
66 follows:
68 cacheflush (start, end, flags)
72 #define CLEAR_INSN_CACHE(BEG, END) \
73 { \
74 register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
75 register unsigned long _end __asm ("a2") = (unsigned long) (END); \
76 register unsigned long _flg __asm ("a3") = 0; \
77 __asm __volatile ("swi 0x9000b8"); \
80 #endif
82 /* If cross-compiling, don't require stdio.h etc to build libgcc.a. */
83 #ifdef CROSS_COMPILE
84 #ifndef inhibit_libc
85 #define inhibit_libc
86 #endif
87 #endif