OSDN Git Service

* config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / t-vr
1 # BEGIN boiler-plate MIPS stuff
2
3 # Don't let CTOR_LIST end up in sdata section.
4 CRTSTUFF_T_CFLAGS = -G 0
5
6 # We must build libgcc2.a with -G 0, in case the user wants to link
7 # without the $gp register.
8 TARGET_LIBGCC2_CFLAGS = -G 0
9
10 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/mips/mips16.S \
11                          $(srcdir)/config/mips/vr4122-div.S
12 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
13
14 # Assemble startup files.
15 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
16         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
17         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
18
19 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
20         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
21         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
22
23 # END boiler-plate
24
25 # Endianness: EB or EL
26 #
27 # ABIs: mabi=32
28 #       mabi=o64
29 #       mabi=eabi
30 #       meabi=eabi/mlong32
31 #       mabi=eabi/mgp32
32 #       mabi=eabi/mgp32/mlong64
33 #
34 # Architecture: march=vr5400
35 #               march=vr4100
36 #               march=vr4100/mips16
37 #
38 # Total: 2 * 6 * 3 = 36 multilibs.
39 MULTILIB_OPTIONS =                      \
40         EL/EB                           \
41         mabi=32/mabi=o64/mabi=eabi      \
42         mgp32                           \
43         mlong64                         \
44         mips16                          \
45         march=vr5400/march=vr4100
46
47 MULTILIB_DIRNAMES =     \
48         el eb           \
49         o32 o64 eabi    \
50         gp32            \
51         long64          \
52         mips16          \
53         vr5400 vr4100
54
55 MULTILIB_MATCHES = EL=mel EB=meb
56
57 # Assume a 4000-series is the default: we'd need a *mips16 entry if
58 # the default processor didn't support mips16.  Also assume o64,
59 # which means we need to extend the o64 exceptions to combinations
60 # without a -mabi flag.
61 MULTILIB_EXCEPTIONS =                           \
62         *mabi=32/mlong64*                       \
63         *mabi=32/mgp32*                         \
64         *mabi=o64/mgp32*                        \
65         *mabi=o64/mlong64*                      \
66         mgp32* E[LB]/mgp32*                     \
67         mlong64* E[LB]/mlong64*                 \
68         *mips16/march=vr5*