OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [arm/] [bpabi.h] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Configuration file for ARM BPABI targets.
2
   Copyright (C) 2004, 2005, 2007
3
   Free Software Foundation, Inc.
4
   Contributed by CodeSourcery, LLC
5
 
6
   This file is part of GCC.
7
 
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 3, or (at your
11
   option) any later version.
12
 
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.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GCC; see the file COPYING3.  If not see
20
   <http://www.gnu.org/licenses/>.  */
21
 
22
/* Use the AAPCS ABI by default.  */
23
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS
24
 
25
/* Assume that AAPCS ABIs should adhere to the full BPABI.  */
26
#define TARGET_BPABI (TARGET_AAPCS_BASED)
27
 
28
/* BPABI targets use EABI frame unwinding tables.  */
29
#define TARGET_UNWIND_INFO 1
30
 
31
/* Section 4.1 of the AAPCS requires the use of VFP format.  */
32
#undef FPUTYPE_DEFAULT
33
#define FPUTYPE_DEFAULT FPUTYPE_VFP
34
 
35
/* EABI targets should enable interworking by default.  */
36
#undef TARGET_DEFAULT
37
#define TARGET_DEFAULT MASK_INTERWORK
38
 
39
/* The ARM BPABI functions return a boolean; they use no special
40
   calling convention.  */
41
#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) TARGET_BPABI
42
 
43
/* The BPABI integer comparison routines return { -1, 0, 1 }.  */
44
#define TARGET_LIB_INT_CMP_BIASED !TARGET_BPABI
45
 
46
/* Tell the assembler to build BPABI binaries.  */
47
#undef SUBTARGET_EXTRA_ASM_SPEC
48
#define SUBTARGET_EXTRA_ASM_SPEC "%{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu;:-meabi=4}"
49
 
50
/* The generic link spec in elf.h does not support shared libraries.  */
51
#undef LINK_SPEC
52
#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} "           \
53
  "%{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} "        \
54
  "-X"
55
 
56
#if defined (__thumb__)
57
#define RENAME_LIBRARY_SET ".thumb_set"
58
#else
59
#define RENAME_LIBRARY_SET ".set"
60
#endif
61
 
62
/* Make __aeabi_AEABI_NAME an alias for __GCC_NAME.  */
63
#define RENAME_LIBRARY(GCC_NAME, AEABI_NAME)            \
64
  __asm__ (".globl\t__aeabi_" #AEABI_NAME "\n"          \
65
           RENAME_LIBRARY_SET "\t__aeabi_" #AEABI_NAME  \
66
             ", __" #GCC_NAME "\n");
67
 
68
/* Give some libgcc functions an additional __aeabi name.  */
69
#ifdef L_muldi3
70
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
71
#endif
72
#ifdef L_muldi3
73
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (muldi3, lmul)
74
#endif
75
#ifdef L_fixdfdi
76
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixdfdi, d2lz)
77
#endif
78
#ifdef L_fixunsdfdi
79
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunsdfdi, d2ulz)
80
#endif
81
#ifdef L_fixsfdi
82
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixsfdi, f2lz)
83
#endif
84
#ifdef L_fixunssfdi
85
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (fixunssfdi, f2ulz)
86
#endif
87
#ifdef L_floatdidf
88
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdidf, l2d)
89
#endif
90
#ifdef L_floatdisf
91
#define DECLARE_LIBRARY_RENAMES RENAME_LIBRARY (floatdisf, l2f)
92
#endif
93
 
94
/* The BPABI requires that we always use an out-of-line implementation
95
   of RTTI comparison, even if the target supports weak symbols,
96
   because the same object file might be used on a target that does
97
   not support merging symbols across DLL boundaries.  This macro is
98
   broken out separately so that it can be used within
99
   TARGET_OS_CPP_BUILTINS in configuration files for systems based on
100
   the BPABI.  */
101
#define TARGET_BPABI_CPP_BUILTINS()                     \
102
  do                                                    \
103
    {                                                   \
104
      builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
105
    }                                                   \
106
  while (false)
107
 
108
#undef TARGET_OS_CPP_BUILTINS
109
#define TARGET_OS_CPP_BUILTINS() \
110
  TARGET_BPABI_CPP_BUILTINS()
111
 
112
/* The BPABI specifies the use of .{init,fini}_array.  Therefore, we
113
   do not want GCC to put anything into the .{init,fini} sections.  */
114
#undef INIT_SECTION_ASM_OP
115
#undef FINI_SECTION_ASM_OP
116
#define INIT_ARRAY_SECTION_ASM_OP ARM_EABI_CTORS_SECTION_OP
117
#define FINI_ARRAY_SECTION_ASM_OP ARM_EABI_DTORS_SECTION_OP

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.