summaryrefslogtreecommitdiffstats
path: root/gcc/config/spu/t-spu-elf
blob: 45802499525c50d7df006fee15c6b35ac9164498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#  Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
#  Free Software Foundation, Inc.
#
#  This file is free software; you can redistribute it and/or modify it under
#  the terms of the GNU General Public License as published by the Free
#  Software Foundation; either version 3 of the License, or (at your option) 
#  any later version.
#
#  This file is distributed in the hope that it will be useful, but WITHOUT
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
#  for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with GCC; see the file COPYING3.  If not see
#  <http://www.gnu.org/licenses/>.

TARGET_LIBGCC2_CFLAGS = -fPIC -mwarn-reloc -D__IN_LIBGCC2

# We exclude those because the libgcc2.c default versions do not support
# the SPU single-precision format (round towards zero).  We provide our
# own versions below and/or via direct expansion.
LIB2FUNCS_EXCLUDE = _floatdisf _floatundisf _floattisf _floatunstisf

LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/spu/float_unssidf.c \
			 $(srcdir)/config/spu/float_unsdidf.c \
			 $(srcdir)/config/spu/float_unsdisf.c \
			 $(srcdir)/config/spu/float_disf.c \
			 $(srcdir)/config/spu/mfc_tag_table.c \
			 $(srcdir)/config/spu/mfc_tag_reserve.c \
			 $(srcdir)/config/spu/mfc_tag_release.c \
			 $(srcdir)/config/spu/mfc_multi_tag_reserve.c \
			 $(srcdir)/config/spu/mfc_multi_tag_release.c \
			 $(srcdir)/config/spu/multi3.c \
			 $(srcdir)/config/spu/divmodti4.c \
			 $(srcdir)/config/spu/divv2df3.c

# Build TImode conversion routines to support Fortran 128-bit
# integer data types.
LIB2_SIDITI_CONV_FUNCS=yes

# Multi-lib support.
MULTILIB_OPTIONS=mea64

LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib

spu.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
  $(RTL_H) $(REGS_H) hard-reg-set.h \
  real.h insn-config.h conditions.h insn-attr.h flags.h $(RECOG_H) \
  $(OBSTACK_H) $(TREE_H) $(EXPR_H) $(OPTABS_H) except.h function.h \
  output.h $(BASIC_BLOCK_H) $(INTEGRATE_H) $(GGC_H) $(HASHTAB_H) \
  $(TM_P_H) $(TARGET_H) $(TARGET_DEF_H) langhooks.h reload.h cfglayout.h \
  $(srcdir)/config/spu/spu-protos.h \
  $(srcdir)/config/spu/spu-builtins.def 

spu-c.o: $(srcdir)/config/spu/spu-c.c \
    $(srcdir)/config/spu/spu-protos.h \
    $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(CPPLIB_H) \
    $(TM_P_H) $(C_COMMON_H) $(C_PRAGMA_H) coretypes.h $(TM_H) insn-codes.h
	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
		$(srcdir)/config/spu/spu-c.c
OpenPOWER on IntegriCloud