Replace occurances of "GNU CC" with "GCC" and reformat as appropriate.
[official-gcc.git] / gcc / config / arm / unknown-elf.h
blob747d80d1d16b4e6a45bfb92387e1b14542c97a42
1 /* Definitions for non-Linux based ARM systems using ELF
2 Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Catherine Moore <clm@cygnus.com>
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* elfos.h should have already been included. Now just override
23 any conflicting definitions and add any extras. */
25 /* Run-time Target Specification. */
26 #ifndef TARGET_VERSION
27 #define TARGET_VERSION fputs (" (ARM/ELF)", stderr);
28 #endif
30 /* Default to using APCS-32 and software floating point. */
31 #ifndef TARGET_DEFAULT
32 #define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME)
33 #endif
35 /* Now we define the strings used to build the spec file. */
36 #undef STARTFILE_SPEC
37 #define STARTFILE_SPEC " crti%O%s crtbegin%O%s crt0%O%s"
39 #undef ENDFILE_SPEC
40 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
42 /* The __USES_INITFINI__ define is tested in newlib/libc/sys/arm/crt0.S
43 to see if it needs to invoked _init() and _fini(). */
44 #undef SUBTARGET_CPP_SPEC
45 #define SUBTARGET_CPP_SPEC "-D__ELF__ -D__USES_INITFINI__"
47 #undef PREFERRED_DEBUGGING_TYPE
48 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
50 /* Return a nonzero value if DECL has a section attribute. */
51 #define IN_NAMED_SECTION(DECL) \
52 ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL) \
53 && DECL_SECTION_NAME (DECL) != NULL_TREE)
55 #undef ASM_OUTPUT_ALIGNED_BSS
56 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
57 do \
58 { \
59 if (IN_NAMED_SECTION (DECL)) \
60 named_section (DECL, NULL, 0); \
61 else \
62 bss_section (); \
64 (*targetm.asm_out.globalize_label) (FILE, NAME); \
66 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
68 last_assemble_variable_decl = DECL; \
69 ASM_DECLARE_OBJECT_NAME (FILE, NAME, DECL); \
70 ASM_OUTPUT_SKIP (FILE, SIZE ? SIZE : 1); \
71 } \
72 while (0)
74 #undef ASM_OUTPUT_ALIGNED_DECL_LOCAL
75 #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
76 do \
77 { \
78 if ((DECL) != NULL && IN_NAMED_SECTION (DECL)) \
79 named_section (DECL, NULL, 0); \
80 else \
81 bss_section (); \
83 ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
84 ASM_OUTPUT_LABEL (FILE, NAME); \
85 fprintf (FILE, "\t.space\t%d\n", SIZE ? SIZE : 1); \
86 } \
87 while (0)
89 #ifndef CPP_APCS_PC_DEFAULT_SPEC
90 #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
91 #endif
93 #ifndef SUBTARGET_CPU_DEFAULT
94 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm7tdmi
95 #endif