2016-10-26 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libgcc / config / nds32 / t-nds32-mculib
blobb4f7b4c99758e2291fcf98439c1c78eb81c23741
1 # Rules of mculib library makefile of Andes NDS32 cpu for GNU compiler
2 # Copyright (C) 2012-2016 Free Software Foundation, Inc.
3 # Contributed by Andes Technology Corporation.
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 WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15 # License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GCC; see the file COPYING3.  If not see
19 # <http://www.gnu.org/licenses/>.
21 # Compiler flags to use when compiling 'libgcc2.c'
22 HOST_LIBGCC2_CFLAGS = -Os
25 LIB1ASMSRC   = nds32/lib1asmsrc-mculib.S
27 LIB1ASMFUNCS =   \
28         _addsub_sf   \
29         _sf_to_si    \
30         _divsi3      \
31         _divdi3      \
32         _modsi3      \
33         _moddi3      \
34         _mulsi3      \
35         _udivsi3     \
36         _udivdi3     \
37         _udivmoddi4  \
38         _umodsi3     \
39         _umoddi3     \
40         _muldi3      \
41         _addsub_df   \
42         _mul_sf      \
43         _mul_df      \
44         _div_sf      \
45         _div_df      \
46         _negate_sf   \
47         _negate_df   \
48         _sf_to_df    \
49         _df_to_sf    \
50         _df_to_si    \
51         _fixsfdi     \
52         _fixdfdi     \
53         _fixunssfsi  \
54         _fixunsdfsi  \
55         _fixunssfdi  \
56         _fixunsdfdi  \
57         _si_to_sf    \
58         _si_to_df    \
59         _floatdisf   \
60         _floatdidf   \
61         _floatunsisf \
62         _floatunsidf \
63         _floatundisf \
64         _floatundidf \
65         _compare_sf  \
66         _compare_df  \
67         _unord_sf    \
68         _unord_df
70 # List of functions not to build from libgcc2.c.
71 LIB2FUNCS_EXCLUDE = _clzsi2 _clzdi2
73 # List of extra C and assembler files(*.S) to add to static libgcc2.
74 LIB2ADD_ST += $(srcdir)/config/nds32/lib2csrc-mculib/_clzsi2.c
75 LIB2ADD_ST += $(srcdir)/config/nds32/lib2csrc-mculib/_clzdi2.c
77 # ------------------------------------------------------------------------