]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/mcore/t-mcore
Backend for Motorola's MCore processors.
[thirdparty/gcc.git] / gcc / config / mcore / t-mcore
1 # Name of assembly file containing libgcc1 functions.
2 # This entry must be present, but it can be empty if the target does
3 # not need any assembler functions to support its code generation.
4
5 CROSS_LIBGCC1 = libgcc1-asm.a
6 LIB1ASMSRC = mcore/lib1.asm
7 LIB1ASMFUNCS = _divsi3 _udivsi3 _modsi3 _umodsi3
8
9 # Assemble startup files.
10 $(T)crti.o: $(srcdir)/config/mcore/crti.asm $(GCC_PASSES)
11 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
12 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mcore/crti.asm
13
14 $(T)crtn.o: $(srcdir)/config/mcore/crtn.asm $(GCC_PASSES)
15 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
16 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mcore/crtn.asm
17
18 # We want fine grained libraries, so use the new code to build the
19 # floating point emulation libraries.
20 FPBIT = fp-bit.c
21 DPBIT = dp-bit.c
22
23 dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/mcore/t-mcore
24 rm -f dp-bit.c
25 echo '' > dp-bit.c
26 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
27
28 fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/mcore/t-mcore
29 rm -f fp-bit.c
30 echo '' > fp-bit.c
31 echo '#define FLOAT' > fp-bit.c
32 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
33
34 T_CFLAGS = -DDONT_HAVE_STDIO -DDONT_HAVE_SETJMP -Dinhibit_libc
35 # could use -msifilter to be safe from interrupt/jmp interactions and others.
36 TARGET_LIBGCC2_CFLAGS=-O3 -DNO_FLOATLIB_FIXUNSDFSI #-msifilter
37
38 # We have values for float.h.
39 CROSS_FLOAT_H = $(srcdir)/config/mcore/gfloat.h
40
41 # let the library provider supply an <assert.h>
42 INSTALL_ASSERT_H=
43
44 # If support for -m4align is ever re-enabled then comment out the
45 # following line and uncomment the mutlilib lines below.
46
47 EXTRA_PARTS = crtbegin.o crtend.o crti.o crtn.o
48
49 # MULTILIB_OPTIONS = m8align/m4align
50 # MULTILIB_DIRNAMES = align8 align4
51 # MULTILIB_MATCHES =
52 # MULTILIB_EXTRA_OPTS =
53 # MULTILIB_EXCEPTIONS =
54 # EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
55 # LIBGCC = stmp-multilib
56 # INSTALL_LIBGCC = install-multilib
57
58 MULTILIB_OPTIONS = mbig-endian/mlittle-endian m210/m340
59 MULTILIB_DIRNAMES = big little m210 m340
60
61 EXTRA_PARTS =
62 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
63 LIBGCC = stmp-multilib
64 INSTALL_LIBGCC = install-multilib