1# Rules of mculib library makefile of Andes NDS32 cpu for GNU compiler 2# Copyright (C) 2012-2022 Free Software Foundation, Inc. 3# Contributed by Andes Technology Corporation. 4# 5# This file is part of GCC. 6# 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. 11# 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. 16# 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/>. 20 21# Compiler flags to use when compiling 'libgcc2.c' 22HOST_LIBGCC2_CFLAGS = -Os 23 24 25LIB1ASMSRC = nds32/lib1asmsrc-mculib.S 26 27LIB1ASMFUNCS = \ 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 69 70# List of functions not to build from libgcc2.c. 71LIB2FUNCS_EXCLUDE = _clzsi2 _clzdi2 72 73# List of extra C and assembler files(*.S) to add to static libgcc2. 74LIB2ADD_ST += $(srcdir)/config/nds32/lib2csrc-mculib/_clzsi2.c 75LIB2ADD_ST += $(srcdir)/config/nds32/lib2csrc-mculib/_clzdi2.c 76 77# ------------------------------------------------------------------------ 78