]>
Commit | Line | Data |
---|---|---|
2b778ceb | 1 | # Copyright (C) 1991-2021 Free Software Foundation, Inc. |
28f540f4 RM |
2 | # This file is part of the GNU C Library. |
3 | ||
4 | # The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
5 | # modify it under the terms of the GNU Lesser General Public |
6 | # License as published by the Free Software Foundation; either | |
7 | # version 2.1 of the License, or (at your option) any later version. | |
28f540f4 RM |
8 | |
9 | # The GNU C Library is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 12 | # Lesser General Public License for more details. |
28f540f4 | 13 | |
41bdb6e2 | 14 | # You should have received a copy of the GNU Lesser General Public |
59ba27a6 | 15 | # License along with the GNU C Library; if not, see |
5a82c748 | 16 | # <https://www.gnu.org/licenses/>. |
28f540f4 RM |
17 | |
18 | ifeq ($(subdir),gnulib) | |
29a24b9c | 19 | sysdep_routines = dotmul umul $(divrem) alloca |
28f540f4 RM |
20 | endif # gnulib |
21 | ||
28f540f4 RM |
22 | divrem := sdiv udiv rem urem |
23 | ||
bdc543e3 AZ |
24 | # libgcc __divdi3 and __moddi3 uses .udiv and since it is also exported by |
25 | # libc.so linker will create PLTs for the symbol. To avoid it we strong alias | |
26 | # the exported libc one to __wrap_.udiv and use linker option --wrap to make any | |
27 | # call to .udiv to call the wrapper symbol. | |
28 | libc.so-gnulib += -Wl,--wrap=.udiv | |
2c753f3e JM |
29 | |
30 | ifeq ($(subdir),soft-fp) | |
31 | sparc32-quad-routines := q_add q_cmp q_cmpe q_div q_dtoq q_feq q_fge \ | |
32 | q_fgt q_fle q_flt q_fne q_itoq q_mul q_neg q_qtod q_qtoi \ | |
33 | q_qtos q_qtou q_qtoull q_qtoll q_sqrt q_stoq q_sub q_utoq \ | |
34 | q_ulltoq q_lltoq q_util | |
35 | sysdep_routines += $(sparc32-quad-routines) | |
36 | ||
37 | endif |