2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libgcc / config / rl78 / t-rl78
blob71de3fa6f4f2c1e58ad556833ef04861e31323c3
1 # Makefile fragment for building LIBGCC for the Renesas RL78 target.
2 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
3 # Contributed by Red Hat.
5 # This file is part of GCC.
7 # GCC is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published
9 # by the Free Software Foundation; either version 3, or (at your
10 # option) any later version.
12 # GCC is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See
15 # the GNU General Public License for more details.
17 # You should have received a copy of the  GNU General Public
18 # License along with GCC; see the file COPYING3.  If not see
19 # <http://www.gnu.org/licenses/>.
21 LIB2ADD = \
22         $(srcdir)/config/rl78/trampoline.S \
23         $(srcdir)/config/rl78/lib2shift.c \
24         $(srcdir)/config/rl78/lshrsi3.S \
25         $(srcdir)/config/rl78/mulsi3.S \
26         $(srcdir)/config/rl78/divmodsi.S \
27         $(srcdir)/config/rl78/divmodhi.S \
28         $(srcdir)/config/rl78/divmodqi.S \
29         $(srcdir)/config/rl78/signbit.S \
30         $(srcdir)/config/rl78/bit-count.S \
31         $(srcdir)/config/rl78/fpbit-sf.S \
32         $(srcdir)/config/rl78/fpmath-sf.S \
33         $(srcdir)/config/rl78/cmpsi2.S \
34         $(srcdir)/config/rl78/adddi3.S \
35         $(srcdir)/config/rl78/subdi3.S \
36         $(srcdir)/config/rl78/umaxdi3.S \
37         $(srcdir)/config/rl78/smindi3.S \
38         $(srcdir)/config/rl78/smaxdi3.S
40 LIB2FUNCS_EXCLUDE = _clzhi2 _clzsi2 _ctzhi2 _ctzsi2 \
41   _popcounthi2 _popcountsi2 \
42   _parityhi2 _paritysi2 _ffssi2 _ffshi2 \
43   _negate_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
44   _lt_sf _le_sf _unord_sf \
45   _si_to_sf _usi_to_sf \
46   _sf_to_si   _sf_to_usi \
47   _fixunssfsi _fixsfsi \
48   _addsub_sf _mul_sf _div_sf
50 # Remove __gcc_bcmp from LIB2FUNCS_ST
51 LIB2FUNCS_ST = _eprintf
52         
53 HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections