OSDN Git Service

* config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / t-linux64
1
2 #rs6000/t-linux64
3
4 LIB2FUNCS_EXTRA = tramp.S $(srcdir)/config/rs6000/ppc64-fp.c \
5         $(srcdir)/config/rs6000/darwin-ldouble.c
6
7 TARGET_LIBGCC2_CFLAGS = -mno-minimal-toc -fPIC -specs=bispecs
8
9 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-ppc64.ver
10
11 MULTILIB_OPTIONS        = m64/m32 msoft-float
12 MULTILIB_DIRNAMES       = 64 32 nof
13 MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
14 MULTILIB_EXCEPTIONS     = m64/msoft-float
15 MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
16 MULTILIB_OSDIRNAMES     = ../lib64 ../lib nof
17 MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
18
19 # We want fine grained libraries, so use the new code to build the
20 # floating point emulation libraries.
21 # fp-bit is only to be used by 32-bit multilibs
22 FPBIT = fp-bit32.c
23 DPBIT = dp-bit32.c
24
25 dp-bit32.c: $(srcdir)/config/fp-bit.c
26         ( echo '#ifndef __powerpc64__'; \
27           cat $(srcdir)/config/fp-bit.c; \
28           echo '#endif' ) > dp-bit32.c
29
30 fp-bit32.c: $(srcdir)/config/fp-bit.c
31         ( echo '#ifndef __powerpc64__'; \
32           echo '#define FLOAT'; \
33           cat $(srcdir)/config/fp-bit.c; \
34           echo '#endif' ) > fp-bit32.c
35
36 # Hack to use -mlong-double-128 just for compiling 64 bit libgcc
37 mklibgcc: bispecs
38
39 bispecs: specs
40         if [ x`$(GCC_FOR_TARGET) -print-multi-os-directory` = x../lib ]; then \
41           sed -e '/cc1_options/{ n; s/$$/ %{m64:-mlong-double-128}/; }' < specs > $@; \
42         else \
43           sed -e '/cc1_options/{ n; s/$$/ %{!m32:-mlong-double-128}/; }' < specs > $@; \
44         fi