comparison gcc/config/arc/t-arc @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children 77e2b8dfacca
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
1 LIB1ASMSRC = arc/lib1funcs.asm
2 LIB1ASMFUNCS = _mulsi3 _umulsidi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _divmod_tools
3
4 # We need libgcc routines to be mangled according to which cpu they
5 # were compiled for.
6 # ??? -mmangle-cpu passed by default for now.
7 #LIBGCC2_CFLAGS = -g1 -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -mmangle-cpu
8
9 # We want fine grained libraries, so use the new code to build the
10 # floating point emulation libraries.
11 FPBIT = fp-bit.c
12 DPBIT = dp-bit.c
13
14 dp-bit.c: $(srcdir)/config/fp-bit.c
15 echo '#ifndef __big_endian__' > dp-bit.c
16 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
17 echo '#endif' >> dp-bit.c
18 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
19
20 fp-bit.c: $(srcdir)/config/fp-bit.c
21 echo '#define FLOAT' > fp-bit.c
22 echo '#ifndef __big_endian__' >> fp-bit.c
23 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
24 echo '#endif' >> fp-bit.c
25 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
26
27 # .init/.fini section routines
28
29 $(T)crtinit.o: $(srcdir)/config/arc/initfini.c $(GCC_PASSES) $(CONFIG_H)
30 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
31 $(MULTILIB_CFLAGS) -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
32 -g0 -c $(srcdir)/config/arc/initfini.c -o $(T)crtinit.o
33
34 $(T)crtfini.o: $(srcdir)/config/arc/initfini.c $(GCC_PASSES) $(CONFIG_H)
35 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
36 -DCRT_FINI $(MULTILIB_CFLAGS) -finhibit-size-directive -fno-inline-functions \
37 -g0 -c $(srcdir)/config/arc/initfini.c -o $(T)crtfini.o
38
39 MULTILIB_OPTIONS = EB
40 MULTILIB_DIRNAMES = be
41 EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o