OSDN Git Service

* arm.c (thumb1_output_casesi): New function.
[pf3gnuchains/gcc-fork.git] / gcc / config / arm / t-arm-elf
1 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2 # 2008 Free Software Foundation, Inc.
3 #
4 # This file is part of GCC.
5 #
6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10 #
11 # GCC is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3.  If not see
18 # <http://www.gnu.org/licenses/>.
19
20 # For most CPUs we have an assembly soft-float implementations.
21 # However this is not true for ARMv6M.  Here we want to use the soft-fp C
22 # implementation.  The soft-fp code is only build for ARMv6M.  This pulls
23 # in the asm implementation for other CPUs.
24 LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \
25         _call_via_rX _interwork_call_via_rX \
26         _lshrdi3 _ashrdi3 _ashldi3 \
27         _arm_negdf2 _arm_addsubdf3 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
28         _arm_fixdfsi _arm_fixunsdfsi \
29         _arm_truncdfsf2 _arm_negsf2 _arm_addsubsf3 _arm_muldivsf3 \
30         _arm_cmpsf2 _arm_unordsf2 _arm_fixsfsi _arm_fixunssfsi \
31         _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \
32         _clzsi2 _clzdi2 
33
34 MULTILIB_OPTIONS     = marm/mthumb
35 MULTILIB_DIRNAMES    = arm thumb
36 MULTILIB_EXCEPTIONS  = 
37 MULTILIB_MATCHES     =
38
39 #MULTILIB_OPTIONS      += march=armv7
40 #MULTILIB_DIRNAMES     += thumb2
41 #MULTILIB_EXCEPTIONS   += march=armv7* marm/*march=armv7*
42 #MULTILIB_MATCHES      += march?armv7=march?armv7-a
43 #MULTILIB_MATCHES      += march?armv7=march?armv7-r
44 #MULTILIB_MATCHES      += march?armv7=march?armv7-m
45 #MULTILIB_MATCHES      += march?armv7=mcpu?cortex-a8
46 #MULTILIB_MATCHES      += march?armv7=mcpu?cortex-r4
47 #MULTILIB_MATCHES      += march?armv7=mcpu?cortex-m3
48
49 # MULTILIB_OPTIONS    += mcpu=ep9312
50 # MULTILIB_DIRNAMES   += ep9312
51 # MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
52 #       
53 # MULTILIB_OPTIONS     += mlittle-endian/mbig-endian
54 # MULTILIB_DIRNAMES    += le be
55 # MULTILIB_MATCHES     += mbig-endian=mbe mlittle-endian=mle
56
57 # MULTILIB_OPTIONS    += mhard-float/msoft-float
58 # MULTILIB_DIRNAMES   += fpu soft
59 # MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
60
61 # MULTILIB_OPTIONS    += mno-thumb-interwork/mthumb-interwork
62 # MULTILIB_DIRNAMES   += normal interwork
63
64 # MULTILIB_OPTIONS    += fno-leading-underscore/fleading-underscore
65 # MULTILIB_DIRNAMES   += elf under
66
67 # MULTILIB_OPTIONS    += mcpu=arm7
68 # MULTILIB_DIRNAMES   += nofmult
69 # MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7*
70 # # Note: the multilib_exceptions matches both -mthumb and
71 # # -mthumb-interwork
72 # #
73 # # We have to match all the arm cpu variants which do not have the
74 # # multiply instruction and treat them as if the user had specified
75 # # -mcpu=arm7.  Note that in the following the ? is interpreted as
76 # # an = for the purposes of matching command line options.
77 # # FIXME: There ought to be a better way to do this.
78 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm7d
79 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm7di
80 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm70
81 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm700
82 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm700i
83 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm710
84 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm710c
85 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm7100
86 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm7500
87 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm7500fe
88 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm6
89 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm60
90 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm600
91 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm610
92 # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm620
93
94 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
95
96 # If EXTRA_MULTILIB_PARTS is not defined above then define EXTRA_PARTS here
97 # EXTRA_PARTS = crtbegin.o crtend.o crti.o crtn.o
98
99 LIBGCC = stmp-multilib
100 INSTALL_LIBGCC = install-multilib
101
102 # Currently there is a bug somewhere in GCC's alias analysis
103 # or scheduling code that is breaking _fpmul_parts in fp-bit.c.
104 # Disabling function inlining is a workaround for this problem.
105 TARGET_LIBGCC2_CFLAGS = -fno-inline
106
107 # Assemble startup files.
108 $(T)crti.o: $(srcdir)/config/arm/crti.asm $(GCC_PASSES)
109         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
110         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/arm/crti.asm
111
112 $(T)crtn.o: $(srcdir)/config/arm/crtn.asm $(GCC_PASSES)
113         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
114         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/arm/crtn.asm
115