Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / config / arc / t-arc
blobb39fb128e102f17c57e2b04fc97ef647c8bda1bb
1 LIB1ASMSRC = arc/lib1funcs.asm
2 LIB1ASMFUNCS = _mulsi3 _umulsidi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _divmod_tools
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
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
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
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
27 # .init/.fini section routines
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
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
39 MULTILIB_OPTIONS = EB
40 MULTILIB_DIRNAMES = be
41 EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o