1 # Copyright (C) 2006, 2007 Free Software Foundation, Inc.
3 # This file is free software; you can redistribute it and/or modify it under
4 # the terms of the GNU General Public License as published by the Free
5 # Software Foundation; either version 3 of the License, or (at your option)
8 # This file is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # You should have received a copy of the GNU General Public License
14 # along with GCC; see the file COPYING3. If not see
15 # <http://www.gnu.org/licenses/>.
18 # Suppress building libgcc1.a
22 # On SPU __word__ is TImode which is too inefficient and incomplete for
23 # implementing libgcc routines.
24 TARGET_LIBGCC2_CFLAGS = -fPIC -D__word__=SI -mwarn-reloc -D__IN_LIBGCC2
26 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/spu/float_unssidf.c \
27 $(srcdir)/config/spu/float_unsdidf.c \
28 $(srcdir)/config/spu/mfc_tag_table.c \
29 $(srcdir)/config/spu/mfc_tag_reserve.c \
30 $(srcdir)/config/spu/mfc_tag_release.c \
31 $(srcdir)/config/spu/mfc_multi_tag_reserve.c \
32 $(srcdir)/config/spu/mfc_multi_tag_release.c
34 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
35 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
37 # We want fine grained libraries, so use the new code to build the
38 # floating point emulation libraries.
42 dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
43 echo '#undef US_SOFTWARE_GOFAST' > dp-bit.c
44 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
46 fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
47 echo '#define FLOAT' > fp-bit.c
48 echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
49 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
51 # Don't let CTOR_LIST end up in sdata section.
54 #MULTILIB_OPTIONS=mlarge-mem/mtest-abi
55 #MULTILIB_DIRNAMES=large-mem test-abi
58 # Neither gcc or newlib seem to have a standard way to generate multiple
59 # crt*.o files. So we don't use the standard crt0.o name anymore.
61 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
63 LIBGCC = stmp-multilib
64 INSTALL_LIBGCC = install-multilib
66 spu-c.o: $(srcdir)/config/spu/spu-c.c