OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [m32r/] [t-m32r] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
# We want fine grained libraries, so use the new code to build the
2
# floating point emulation libraries.
3
FPBIT = fp-bit.c
4
DPBIT = dp-bit.c
5
 
6
# Turn off the SDA while compiling libgcc2.  There are no headers for it
7
# and we want maximal upward compatibility here.
8
 
9
TARGET_LIBGCC2_CFLAGS = -G 0
10
 
11
fp-bit.c: $(srcdir)/config/fp-bit.c
12
        echo '#define FLOAT' > fp-bit.c
13
        cat $(srcdir)/config/fp-bit.c >> fp-bit.c
14
 
15
dp-bit.c: $(srcdir)/config/fp-bit.c
16
        cat $(srcdir)/config/fp-bit.c > dp-bit.c
17
 
18
# We need to use -fpic when we are using gcc to compile the routines in
19
# initfini.c.  This is only really needed when we are going to use gcc/g++
20
# to produce a shared library, but since we don't know ahead of time when
21
# we will be doing that, we just always use -fpic when compiling the
22
# routines in initfini.c.
23
# -fpic currently isn't supported for the m32r.
24
 
25
CRTSTUFF_T_CFLAGS =
26
 
27
# .init/.fini section routines
28
 
29
$(T)crtinit.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
30
        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) \
31
        $(CRTSTUFF_T_CFLAGS) $(INCLUDES) -DCRT_INIT \
32
        -finhibit-size-directive -fno-inline-functions -g0 \
33
        -mmodel=medium -c $(srcdir)/config/m32r/initfini.c \
34
        -o $(T)crtinit.o
35
 
36
$(T)crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
37
        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) \
38
        $(CRTSTUFF_T_CFLAGS) $(INCLUDES) -DCRT_FINI \
39
        -finhibit-size-directive -fno-inline-functions -g0 \
40
        -mmodel=medium -c $(srcdir)/config/m32r/initfini.c \
41
        -o $(T)crtfini.o
42
m32rx:
43
        mkdir $@
44
m32r2:
45
        mkdir $@
46
 
47
# -mmodel={small,medium} requires separate libraries.
48
# We don't build libraries for the large model, instead we use the medium
49
# libraries.  The only difference is that the large model can handle jumps
50
# more than 26 signed bits away.
51
 
52
MULTILIB_OPTIONS = mmodel=small/mmodel=medium m32r/m32rx/m32r2
53
MULTILIB_DIRNAMES = small medium m32r m32rx m32r2
54
MULTILIB_MATCHES = mmodel?medium=mmodel?large
55
 
56
# Set MULTILIB_EXTRA_OPTS so shipped libraries have small data in .sdata and
57
# SHN_M32R_SCOMMON.
58
# This is important for objects referenced in system header files.
59
MULTILIB_EXTRA_OPTS = msdata=sdata
60
 
61
EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o
62
 
63
LIBGCC = stmp-multilib
64
INSTALL_LIBGCC = install-multilib

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.