OSDN Git Service

* fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / t-ppccomm
1 # Common support for PowerPC ELF targets (both EABI and SVR4).
2
3 LIB2FUNCS_EXTRA = tramp.S
4
5 # This one can't end up in shared libgcc
6 LIB2FUNCS_STATIC_EXTRA = eabi.S
7
8 # We want fine grained libraries, so use the new code to build the
9 # floating point emulation libraries.
10 FPBIT = fp-bit.c
11 DPBIT = dp-bit.c
12
13
14 dp-bit.c: $(srcdir)/config/fp-bit.c
15         cat $(srcdir)/config/fp-bit.c > dp-bit.c
16
17 fp-bit.c: $(srcdir)/config/fp-bit.c
18         echo '#define FLOAT' > fp-bit.c
19         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
20
21 eabi.S: $(srcdir)/config/rs6000/eabi.asm
22         cat $(srcdir)/config/rs6000/eabi.asm > eabi.S
23
24 tramp.S: $(srcdir)/config/rs6000/tramp.asm
25         cat $(srcdir)/config/rs6000/tramp.asm > tramp.S
26
27 # Switch synonyms
28 MULTILIB_MATCHES_FLOAT  = msoft-float=mcpu?401 \
29                           msoft-float=mcpu?403 \
30                           msoft-float=mcpu?405 \
31                           msoft-float=mcpu?ec603e \
32                           msoft-float=mcpu?801 \
33                           msoft-float=mcpu?821 \
34                           msoft-float=mcpu?823 \
35                           msoft-float=mcpu?860
36 MULTILIB_MATCHES_ENDIAN = mlittle=mlittle-endian mbig=mbig-endian
37 MULTILIB_MATCHES_SYSV   = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi mcall-sysv=mcall-linux mcall-sysv=mcall-netbsd
38
39 LIBGCC = stmp-multilib
40 INSTALL_LIBGCC = install-multilib
41 EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \
42   crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \
43   ecrti$(objext) ecrtn$(objext) \
44   ncrti$(objext) ncrtn$(objext) \
45   crtsavres$(objext)
46
47 # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and
48 # end labels to all of the special sections used when we link using gcc.
49
50 # Assemble startup files.
51 ecrti.S: $(srcdir)/config/rs6000/eabi-ci.asm
52         cat $(srcdir)/config/rs6000/eabi-ci.asm >ecrti.S
53
54 ecrtn.S: $(srcdir)/config/rs6000/eabi-cn.asm
55         cat $(srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S
56
57 ncrti.S: $(srcdir)/config/rs6000/sol-ci.asm
58         cat $(srcdir)/config/rs6000/sol-ci.asm >ncrti.S
59
60 ncrtn.S: $(srcdir)/config/rs6000/sol-cn.asm
61         cat $(srcdir)/config/rs6000/sol-cn.asm >ncrtn.S
62
63 crtsavres.S: $(srcdir)/config/rs6000/crtsavres.asm
64         cat $(srcdir)/config/rs6000/crtsavres.asm >crtsavres.S
65
66 # Build multiple copies of ?crt{i,n}.o, one for each target switch.
67 $(T)ecrti$(objext): ecrti.S
68         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)ecrti$(objext)
69
70 $(T)ecrtn$(objext): ecrtn.S
71         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrtn.S -o $(T)ecrtn$(objext)
72
73 $(T)ncrti$(objext): ncrti.S
74         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ncrti.S -o $(T)ncrti$(objext)
75
76 $(T)ncrtn$(objext): ncrtn.S
77         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ncrtn.S -o $(T)ncrtn$(objext)
78
79 $(T)crtsavres$(objext): crtsavres.S
80         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavres.S -o $(T)crtsavres$(objext)
81
82 # It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
83 CRTSTUFF_T_CFLAGS = -msdata=none
84 # Make sure crt*.o are built with -fPIC even if configured with 
85 # --enable-shared --disable-multilib
86 CRTSTUFF_T_CFLAGS_S = -fPIC -msdata=none