Skip to content

Commit c251d1d

Browse files
committed
Exclude scalbnf.c from LTO
Continuation of #15497 Fixes: #19781
1 parent f66ec9d commit c251d1d

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ jobs:
522522
title: "core3+extras"
523523
test_targets: "
524524
lto2.test_dylink_syslibs_all
525+
lto2.test_float_builtins
525526
lto0.test_exceptions_allowed_uncaught
526527
core3
527528
core2g.test_externref

test/core/test_float_builtins.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ int test_builtins() {
3434
TEST(fmin)
3535
TEST(fmod)
3636
TEST(scalbn)
37+
TEST(ldexp)
3738

3839
TEST(pow)
3940
TESTI(powi)

test/core/test_float_builtins.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __builtin_fmax 0.567800 : 1.010100 : 12.012300
33
__builtin_fmin 0.123400 : 0.101010 : 3.320100
44
__builtin_fmod 0.123400 : 0.101010 : 2.052000
55
__builtin_scalbn 0.123400 : 1.010100 : 96.098400
6+
__builtin_ldexp 0.123400 : 1.010100 : 96.098400
67
__builtin_pow 0.304824 : 1.001016 : 3841.199350
78
__builtin_powi 0.000000 : 2.421390 : 101648962858951235671184182497867417669061891127967232769386628692937206561802464554722378383360.000000
89
inf : 3.091515 : 3.091515 : 1

tools/system_libs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,8 @@ def get_libcall_files(self):
969969
'__math_oflow.c', '__math_oflowf.c',
970970
'__math_uflow.c', '__math_uflowf.c',
971971
'__math_invalid.c', '__math_invalidf.c', '__math_invalidl.c',
972-
'pow.c', 'pow_data.c', 'log.c', 'log_data.c', 'log2.c', 'log2_data.c'
972+
'pow.c', 'pow_data.c', 'log.c', 'log_data.c', 'log2.c', 'log2_data.c',
973+
'scalbnf.c',
973974
]
974975
math_files = files_in_path(path='system/lib/libc/musl/src/math', filenames=math_files)
975976

0 commit comments

Comments
 (0)