Project

General

Profile

Bug #13566

Updated by Toomas Soome about 1 year ago

Build error with gcc 10: 
 <pre> 
     ../common/C/__rem_pio2m.c: In function '__libm__rem_pio2m': 
     ../common/C/__rem_pio2m.c:329:10: error: 'fq[0]' may be used uninitialized in this function [-Werror=maybe-uni 
     nitialized] 
       329 |     fw = fq[0] - fw; 
           |          ~~^~~ 
     cc1: all warnings being treated as errors 
     *** Error code 1 
     dmake: Warning: Command failed for target `pics/__rem_pio2m.o' 
     Current working directory /code/illumos-gate/usr/src/lib/libm/amd64 
 </pre> 

 Testing done: used test from netbsd libm test kit: 
 <pre> 
 tsoome@beastie:/code/illumos-gate/usr/src/test/libm-tests$ ./sin_test -l 
 Content-Type: application/X-atf-tp; version="1" 

 ident: sin_angles 
 descr: Test some selected angles 

 ident: sin_nan 
 descr: Test sin(NaN) == NaN 

 ident: sin_inf_neg 
 descr: Test sin(-Inf) == NaN 

 ident: sin_inf_pos 
 descr: Test sin(+Inf) == NaN 

 ident: sin_zero_neg 
 descr: Test sin(-0.0) == -0.0 

 ident: sin_zero_pos 
 descr: Test sin(+0.0) == +0.0 

 ident: sinf_angles 
 descr: Test some selected angles 

 ident: sinf_nan 
 descr: Test sinf(NaN) == NaN 

 ident: sinf_inf_neg 
 descr: Test sinf(-Inf) == NaN 

 ident: sinf_inf_pos 
 descr: Test sinf(+Inf) == NaN 

 ident: sinf_zero_neg 
 descr: Test sinf(-0.0) == -0.0 

 ident: sinf_zero_pos 
 descr: Test sinf(+0.0) == +0.0 
 tsoome@beastie:/code/illumos-gate/usr/src/test/libm-tests$ for i in sin_angles sin_nan sin_inf_neg sin_inf_pos sin_zero_neg sin_zero_pos sinf_angles sinf_nan sinf_inf_neg sinf_inf_pos sinf_zero_neg sinf_zero_pos; do 
 > ./sin_test $i 
 > done 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 sin_test: WARNING: Running test cases outside of kyua(1) is unsupported 
 sin_test: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) 
 passed 
 tsoome@beastie:/code/illumos-gate/usr/src/test/libm-tests$ 
 </pre>

Back