* tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
[official-gcc.git] / gcc / config / arm / uclinux-elf.h
blobd6dc4f60bdfbd5eff7edf56409dd2df874d3dc87
1 /* Definitions for ARM running ucLinux using ELF
2 Copyright (C) 1999, 2001, 2004, 2005 Free Software Foundation, Inc.
3 Contributed by Philip Blundell <pb@nexus.co.uk>
5 This file is part of GCC.
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 2, or (at your
10 option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
22 /* We don't want a PLT. */
23 #undef NEED_PLT_RELOC
24 #define NEED_PLT_RELOC 0
26 #undef TARGET_VERSION
27 #define TARGET_VERSION fputs (" (ARM/ELF ucLinux)", stderr);
29 #undef TARGET_DEFAULT
30 #define TARGET_DEFAULT (MASK_SINGLE_PIC_BASE)
32 /* NOTE: The remaining definitions in this file are needed because uclinux
33 does not use config/linux.h. */
35 /* Add GNU/Linux builtins. */
36 #undef TARGET_OS_CPP_BUILTINS
37 #define TARGET_OS_CPP_BUILTINS() \
38 do \
39 { \
40 builtin_define ("__uClinux__"); \
41 builtin_define ("__gnu_linux__"); \
42 builtin_define_std ("linux"); \
43 builtin_define_std ("unix"); \
44 builtin_assert ("system=linux"); \
45 builtin_assert ("system=unix"); \
46 builtin_assert ("system=posix"); \
47 } \
48 while (false)
50 /* Do not assume anything about header files. */
51 #define NO_IMPLICIT_EXTERN_C
53 /* The GNU C++ standard library requires that these macros be defined. */
54 #undef CPLUSPLUS_CPP_SPEC
55 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
57 #undef SUBTARGET_EXTRA_LINK_SPEC
58 #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux"
60 /* Now we define the strings used to build the spec file. */
61 #undef STARTFILE_SPEC
62 #define STARTFILE_SPEC "crt1%O%s crti%O%s crtbegin%O%s"
64 #undef ENDFILE_SPEC
65 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
67 #undef CC1_SPEC
68 #define CC1_SPEC "%{profile:-p}"
70 #undef LINK_GCC_C_SEQUENCE_SPEC
71 #define LINK_GCC_C_SEQUENCE_SPEC \
72 "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
74 /* Use --as-needed -lgcc_s for eh support. */
75 #ifdef HAVE_LD_AS_NEEDED
76 #define USE_LD_AS_NEEDED 1
77 #endif
79 #undef LINK_SPEC
80 #define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X -elf2flt"
82 #undef LIB_SPEC
83 #define LIB_SPEC \
84 "%{pthread:-lpthread} \
85 %{shared:-lc} \
86 %{!shared:%{profile:-lc_p}%{!profile:-lc}}"